Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have some reliable old code that copies worksheets between workbooks
more or less like this: thisWorkbook.ActiveSheet.Copy after:=thatWorkbook.Worksheets(1) When I do the copy I want to make sure I get the cell contents, formatting, validations, any macros in the worksheet's code module, etc. In other words I want it all. Sadly I can't reliably count on the Copy method anymore because of the new workbook formats with their underlying changes in row & column counts. If thisWorkbook is an XLS and thatWorkbook is an XLSX the Copy fails. Obviously it can be a problem copying from an XLSX to an XLS if the source worksheet contains more rows or columns than the target can hold and I'm OK with that. Can somebody suggest an alternative coding technique to replace the Copy method? TIA, josh |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying Worksheets From Different Workbooks using Marco | Excel Worksheet Functions | |||
Copying worksheets with formulae between workbooks | Excel Discussion (Misc queries) | |||
Copying Formats between workbooks and worksheets | Excel Discussion (Misc queries) | |||
Copying Several Workbooks into one Workbook as Worksheets | New Users to Excel | |||
Copying worksheets across workbooks | Excel Programming |