Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I create two workbooks from a template. That works, but then I want to copy
from the one and Paste Special as values - sheet for sheet. (The one workbook is linked to an Access db. I do not wish to work with the live data). My attemp so far: Dim SourceWB As Workbook Dim TargetWB As Workbook Set SourceWB = "Backup " & Format(Now, "yyyy-mm-dd") & ".xls" (File successfully created earlier and still open) Set TargetWB = "ValuesOnly " & Format(Now, "yyyy-mm-dd") & ".xls" (File successfully created earlier and still open) Windows("SourceWB").Activate Then the copying should start. Exact dupes sheets (July, Aug, etc) from template, but paste special as values required. I have recorded a macro to do this. My questions: - SourceWB to TargetWB above don't work and I'm struggling to debug. ActiveWorkbook.Next won't work if the user has a third workbook open (I think). - Copying between workbooks with exact same sheet names can be easier than with my recorded macro? Thanks for any advice. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy worksheet containing names to other workbook w/o problems? | Excel Discussion (Misc queries) | |||
Copy worksheet with named ranges to new workbook and keep names | Excel Worksheet Functions | |||
how do I find names in a workbook full of names | Excel Discussion (Misc queries) | |||
copy a set of names(constants) from 1 workbook to another | Excel Discussion (Misc queries) | |||
How can I Copy cell names from one workbook to another? | Excel Discussion (Misc queries) |