Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi-
I have a macro saved in a file ("Macro1.xls"). This macro opens a file.....does it's thing...closes the file....opens the next file....does it's thing....closes that file.....etc. This goes on for over 100 files. I just added a copy and paste feature that grabs cell values from the "Macro1.xls" file and pastes them into the open file. The problem I have is the name of these files changes from day to day. Currently I have this code which works for a file with the specific file name "Chris.xls": Windows("Macro1.xls").Activate Sheets("Sheet5").Select Rows("1:2").Select Selection.Copy Windows("Chris.xls").Activate Selection.Insert Shift:=xlDown Can anyone recommend some code that will paste this value in the file that is open that is not named "Macro1.xls"?? The only two Excel files that will be open when this macro runs are the macro file and the final data file. TIA! -Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I toggle between 2 open excel files and leave both open | Excel Discussion (Misc queries) | |||
How to change default Open/Files of Type to "Microsoft Excel Files | Excel Discussion (Misc queries) | |||
Macro to open *.dat files and save as .txt (comma delimited text files) | Excel Programming | |||
Open multiple text files and paste contents to single cell | Excel Programming | |||
file open via IE hyperlink causes already open files to shrink and tile | Setting up and Configuration of Excel |