Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can someone help me? I am able to do this in access but seem to can't get it to work in excel
What I would like to do is open a file dialog and select a file (generic/any file) and when that file is selected, the worksheet within the file selected is imported or copied into a file that is already opened In other words, I have an automated form that I have created and the worksheet within the file that is selected, that worksheet is imported or copied into the file next to the automated form Thank you in advance for your help. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim fName as String
Dim wkbk as Workbook fName = Application.GetOpenFileName() if fName < "False" then set wkbk = Workbooks.Open(fName) wkbk.Worksheets(1).Copy After:=ThisWorkbook.Worksheets( _ ThisWorkbook.Worksheets.count) wkbk.close SaveChanges:=False End if -- Regards, Tom Ogilvy "Divinedar" wrote in message ... Can someone help me? I am able to do this in access but seem to can't get it to work in excel. What I would like to do is open a file dialog and select a file (generic/any file) and when that file is selected, the worksheet within the file selected is imported or copied into a file that is already opened. In other words, I have an automated form that I have created and the worksheet within the file that is selected, that worksheet is imported or copied into the file next to the automated form. Thank you in advance for your help. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Skipping Import Text File dialog in a Macro | Excel Discussion (Misc queries) | |||
How come I can't import an .svc file(Open Office) to Excel file? | Excel Discussion (Misc queries) | |||
Prompt user to select file with default file selected dialog | Excel Programming | |||
Prompt user to select file with default file selected dialog | Excel Programming | |||
Prompt user to select file with default file selected dialog | Excel Programming |