Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Import xls file..vba excel2000

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Import xls file..vba excel2000

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Import xls file..vba excel2000

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Import xls file..vba excel2000

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I import text file of cash flow to excel file then use formula Bumpa Excel Discussion (Misc queries) 2 May 28th 10 04:22 PM
import file so that it is a actual csv file, no excel cell version broncoburt New Users to Excel 1 November 21st 09 09:09 PM
Opening .csv file in Excel2003 vs Excel2000 Holmark Excel Discussion (Misc queries) 9 April 24th 07 07:43 PM
In EXCEL2000, How can I copy a file and make it usable in MS WORK TampaDog Excel Discussion (Misc queries) 1 September 15th 05 02:02 PM
Import text file into excel with preset file layout, delimeters VBA meldrape Excel Programming 7 June 15th 04 08:31 PM


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"