bhofsetz said:
Is your destination workbook open? It has to be open in order to cop
the sheets to it.
No sheets exists at the destination, workbook will be created at sav
time with a name from a cell in the existing template.
Also I would suggest using the
sh.Cop
After:=Workbooks("DestinationWorkbookName.xls").Sheets(Sheets.Count)
line instead of the .Sheets(1)
Either way should work but the one with Sheets.Count will always pu
the copied sheet at the end.
I'm not sure if that is the cause of your sub script out or range erro
but the only way I can get that bit of code to error for me is if th
destination workbook isn't open.
I have tried the code with an open workbook and I still get an error
----------------------------------
| Run-Time error '9' |
| subscript out of range |
----------------------------------
Think of it like this, my template is a data entry screen, you enter I
address information into the fields, the application figures ou
subnetting, routing and calulates Binary, Hex and Dec information fo
trouble shooting networks. also creates all configs for VPN Device
Cisco Switches and Cisco Routers (Cut and paste commands) and create
drawings for documantation.
The user Clicks a Save Button and it Saves the Template workbook to
shared network drive location with the name of the site configured.
This data then is saved in a CSV File for the app to check to see i
future sites that will be configured do not conflict with past sites.
I hope this clears things up, I will try to post the workbook on m
website for download (800k) If you would like to see it.
The size issue is why I need to save the workbook with only the visibl
sheets because I have about 20 sheets total but only about 7 - 8 ar
visible depending on options selected