vicalworks
New Member
- Joined
- Aug 11, 2005
- Messages
- 28
Hi eveyrone. im trying to capture the filename of the workbook that i opened using a macro.
So lets say Workbook 1 has the macro.
Macro looks in the folder, opens all the workbooks.
Select worksheet (Sheet1).
Selects cell range D1.
Copy the data from each worksheet.
Select Workbook 1.
Paste the data to first available row in column B.
Now in column A, I want to print the name of the file that
relates to column B data.
I have the code to open the files. My problem is how do I capture the
filename and display it on Column A relating to Column B data???
Thanks - Al
So lets say Workbook 1 has the macro.
Macro looks in the folder, opens all the workbooks.
Select worksheet (Sheet1).
Selects cell range D1.
Copy the data from each worksheet.
Select Workbook 1.
Paste the data to first available row in column B.
Now in column A, I want to print the name of the file that
relates to column B data.
I have the code to open the files. My problem is how do I capture the
filename and display it on Column A relating to Column B data???
Thanks - Al