Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro which should copy one sheet to a new book and then I
jump back and copy another sheet to the same new book. My problem how do I make my macro independent of file names of the file I am copying from and to? I have called the file I am copying from ThisWorkbook but what should I call the file I am copying to, mentioned as "book1" in the macro below: ThisWorkbook.Activate Sheets("A&S kvt").Select Range("A1:U56").Select Selection.Copy Windows("book1").Activate Sheets("Sheet2").Select ActiveSheet.Paste Can someone help? From HA14 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Independent column widths | Excel Worksheet Functions | |||
Independent Lists... | New Users to Excel | |||
independent macros | Excel Programming | |||
Run a .xla as a independent application | Excel Programming | |||
can one cell contain more than one independent number | Excel Discussion (Misc queries) |