Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default data from multiple files

Hi,

I wish to run a macro that will use the FileName and SEQNO from an new
workbook to open a FileName and copy a row of data based on the SEQNO, and
paste back in the original workbook on the second worksheet.

I have set the macro already to create the filename and sort based on the
filename from original data so that all the same filename records that need
to be extracted are together.

I'm a novice and I'm not sure where to go from here.

Cheers
Paul Wilson
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default data from multiple files

Just guessing...
'--
Dim SequenceNum As Double
SequenceNum = Val(ThisWorkbook.Sheets(1).Range("A1").Value)
Workbooks.Open "Sludge" & SequenceNum & ".xls"
ActiveWorkbook.Sheets(1).Rows(SequenceNum).Copy _
Destination:=ThisWorkbook.Sheets(2).Rows(SequenceN um)

Also, since you are a novice, this may be of some help...
http://support.microsoft.com/KB/555375
"How to Ask a Question"
--
Jim Cone


Portland, Oregon USA

"Paul Wilson"

wrote in message
Hi,
I wish to run a macro that will use the FileName and SEQNO from an new
workbook to open a FileName and copy a row of data based on the SEQNO, and
paste back in the original workbook on the second worksheet.

I have set the macro already to create the filename and sort based on the
filename from original data so that all the same filename records that need
to be extracted are together.

I'm a novice and I'm not sure where to go from here.
Cheers
Paul Wilson
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
Pulling data from multiple files Whois Clinton Excel Discussion (Misc queries) 5 June 9th 08 02:46 PM
Reading data arrays from multiple data files in excel Hankjam[_2_] Excel Discussion (Misc queries) 0 February 7th 08 08:29 PM
Graph using data from multiple files my Charts and Charting in Excel 3 January 5th 07 02:07 AM
Need advice : consolidating data from multiple CSV files in Excel - External data handling Matthieu Gaillet Excel Programming 0 December 1st 05 09:02 AM
Importing Multiple Data Files steve Excel Programming 0 July 24th 03 09:26 PM


All times are GMT +1. The time now is 11:31 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"