Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi-
I currently have a macro that copies "Sheet3" from one file and pastes it into another file. This works fine right now....because I know the exact file name. The problem I am forseeing is when I have a file open and the name is different. Here is my current code: Windows("Macro_Off_Premise.xls").Activate Sheets("Sheet3").Select Sheets("Sheet3").Copy Befo=Workbooks("Off Premise New.xls").Sheets(1) Sheets("Sheet3").Select Sheets("Sheet3").Name = "Custom Sort" Sheets("excel").Select Range("A1:A3").Select There will always be two files open. The "Macro_Off_Premise" file....and another file with an unknown name. How do I copy the sheet from the macro file to the OTHER OPEN WORKBOOK???? TIA! -Chris |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy the same raws of all sheets from about a 100 file to a new sheet of a book and save the file | Setting up and Configuration of Excel | |||
Linked file in same folder but unknown path | Excel Programming | |||
copy/paste from one file to another without file name reference | Excel Discussion (Misc queries) | |||
How to Activate unknown file name | Excel Programming | |||
Macro to insert values from a file and save another sheet as a .txt file | Excel Programming |