Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello,
How can I import the contents of an .xls file on users harddisk to the current worksheet via vba? Or better way to get the xls data of a file to my worksheet which holds my macro to do the work needed. Thanks For Your Time. Cheers, Paul |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Open the file in Excel. Write you macro to work on the activeworkbook - a
macro can work on other than the workbook in which it is located. -- Regards, Tom Ogilvy "Soli3d" wrote in message ... Hello, How can I import the contents of an .xls file on users harddisk to the current worksheet via vba? Or better way to get the xls data of a file to my worksheet which holds my macro to do the work needed. Thanks For Your Time. Cheers, Paul |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank You Tom..
Where? How? should I store the macro... Do I need to have a two files open to run? One with code and one with data? Tks, Paul "Tom Ogilvy" wrote: Open the file in Excel. Write you macro to work on the activeworkbook - a macro can work on other than the workbook in which it is located. -- Regards, Tom Ogilvy "Soli3d" wrote in message ... Hello, How can I import the contents of an .xls file on users harddisk to the current worksheet via vba? Or better way to get the xls data of a file to my worksheet which holds my macro to do the work needed. Thanks For Your Time. Cheers, Paul |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I thought you had a macro and wanted to work on data by bringing it into
your sheet with the macro. My suggestion was to alter the macro to work on the Activeworkbook, then open the workbook with the data and run the macro. There are many ways to do what you want, but any solution is driven by the particulars. The answer could be to use your current workbook and use Data=Get External data to retrieve data from the source workbook, treating it as a data file. Your question could also mean that you don't have access to the users file. It is a bit hard to know what you are asking and unless you ask a specific situation, any answer would be very general. -- Regards, Tom Ogilvy "Soli3d" wrote in message ... Thank You Tom.. Where? How? should I store the macro... Do I need to have a two files open to run? One with code and one with data? Tks, Paul "Tom Ogilvy" wrote: Open the file in Excel. Write you macro to work on the ctiveworkbook - a macro can work on other than the workbook in which it is located. -- Regards, Tom Ogilvy "Soli3d" wrote in message ... Hello, How can I import the contents of an .xls file on users harddisk to the current worksheet via vba? Or better way to get the xls data of a file to my worksheet which holds my macro to do the work needed. Thanks For Your Time. Cheers, Paul |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I import text file of cash flow to excel file then use formula | Excel Discussion (Misc queries) | |||
import file so that it is a actual csv file, no excel cell version | New Users to Excel | |||
Opening .csv file in Excel2003 vs Excel2000 | Excel Discussion (Misc queries) | |||
In EXCEL2000, How can I copy a file and make it usable in MS WORK | Excel Discussion (Misc queries) | |||
Import text file into excel with preset file layout, delimeters VBA | Excel Programming |