Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default macro reading excel file

Hi,

I have about 1900 excel files each with two rows of text: one is simply the
names of the columns and the other is the actual data. The column headings
are the same for the 1900 files, but obviously the data in each file
corresponds to a different patient. My task is to combine all 1900 rows of
data into one excel sheet.

This can be done with copying&pasting but I think there is a faster way
using macros. I am new to excel and macros but a friend said there may be a
way. Since the columns are the same across all the files, shouldn't this be
relatively easy to do? I know some programming but I haven't ever needed to
access files saved on the computer.

Thank you for the help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default macro reading excel file

Hi http://www.rondebruin.nl/ado.htm

See
http://www.rondebruin.nl/copy3.htm

Try the ADO code for so many files
http://www.rondebruin.nl/ado.htm


--
Regards Ron De Bruin
http://www.rondebruin.nl



"HJP84" wrote in message ...
Hi,

I have about 1900 excel files each with two rows of text: one is simply the
names of the columns and the other is the actual data. The column headings
are the same for the 1900 files, but obviously the data in each file
corresponds to a different patient. My task is to combine all 1900 rows of
data into one excel sheet.

This can be done with copying&pasting but I think there is a faster way
using macros. I am new to excel and macros but a friend said there may be a
way. Since the columns are the same across all the files, shouldn't this be
relatively easy to do? I know some programming but I haven't ever needed to
access files saved on the computer.

Thank you for the help!



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
VBA macro for reading text file into Excel Javed Khan Excel Discussion (Misc queries) 0 October 14th 09 06:29 PM
Reading File Name in VB Macro that contains today's date dhstein Excel Discussion (Misc queries) 10 November 13th 08 02:48 AM
reading from text file to excel file dgoel Excel Programming 0 April 18th 05 06:49 PM
Reading CSV file from Excel (VBA) Alex[_28_] Excel Programming 2 April 7th 05 03:10 AM
Reading an excel file in SPSS Gary Excel Programming 4 April 17th 04 04:03 PM


All times are GMT +1. The time now is 07:34 AM.

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

About Us

"It's about Microsoft Excel"