Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pulling data from multiple files | Excel Discussion (Misc queries) | |||
Reading data arrays from multiple data files in excel | Excel Discussion (Misc queries) | |||
Graph using data from multiple files | Charts and Charting in Excel | |||
Need advice : consolidating data from multiple CSV files in Excel - External data handling | Excel Programming | |||
Importing Multiple Data Files | Excel Programming |