Evpat
New Member
- Joined
- Oct 8, 2009
- Messages
- 13
I'm transferring information from an old workbook to a new updated workbook.
As far as I can tell, the method I'm using works well for everything except one:
If old workbook has 2 sheets (sheet 1, sheet 2), and sheet 2 links to sheet 1, the new workbook wants to link to sheet 1 of the old workbook.
I need to know how to make the link relative to the new workbook and not read the old sheet, as I'm going to use the macro to delete the old workbook and replace it with the new.
Here's what I'm doing:
Your expertise is greatly appreciated.
Excel 2007, Windows XP
As far as I can tell, the method I'm using works well for everything except one:
If old workbook has 2 sheets (sheet 1, sheet 2), and sheet 2 links to sheet 1, the new workbook wants to link to sheet 1 of the old workbook.
I need to know how to make the link relative to the new workbook and not read the old sheet, as I'm going to use the macro to delete the old workbook and replace it with the new.
Here's what I'm doing:
Code:
Workbooks(Currbook).Sheets(Currsht).Range("B2").Copy Destination:=Workbooks(Handwrit).Sheets(Currsht).Range("B2")
Your expertise is greatly appreciated.
Excel 2007, Windows XP