Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I wish to copy several worksheets from one workbook to another using VB.NET interop code. I have recorded the actions in a Excel macro to view the code and it seems straight forward. However, if I repeat the code in VB.NET, after the worksheets have been copied any references to named ranges are corrupt, they don't even reference the original workbook. Is there any way within Excel or in code to reset the named ranges to reference the workbook the worksheets where copied to. Sample Copde: SourceWorkbook.Worksheets.Copy(,TargetWorkbook.Wor ksheets.Item(TargetWorkbook.Worksheets.Count)) Regards Tim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying worksheets? | Excel Worksheet Functions | |||
Copying Worksheets | Excel Worksheet Functions | |||
copying to worksheets | Excel Discussion (Misc queries) | |||
Copying Worksheets | Excel Discussion (Misc queries) | |||
Copying worksheets | Excel Worksheet Functions |