P
Paul Watkins
I have a workbook (Book1.xls) which has links in it and also has a macro
that saves an array of sheets from the original under a different name
(date.xls)
Example:
<<strFileName = Worksheets("transfer").Range("AA1").Text
ThisWorkbook.Worksheets(Array("sheet1", "sheet2", "sheet3",
"sheet7")).Copy
ActiveWorkbook.SaveAs Filename:="C:\TEMP\ " & strFileName & ".xls">>
(the strfileName is a date)
This code copies the sheets but none of the macros / VB Code
The problem i have is that when i open the book (date.xls) it either asks to
update links or updates regardless (if the setting is enabled under options)
Is there any way to adapt/add to the above code to add an entry to the VB
Code 'ThisWorkbook' (When the book opens) to disable the automatic updating
of links
I believe the line i need to add is something like:-
<<updateLinks = False>>
Any Help would be appreciated
Paul
that saves an array of sheets from the original under a different name
(date.xls)
Example:
<<strFileName = Worksheets("transfer").Range("AA1").Text
ThisWorkbook.Worksheets(Array("sheet1", "sheet2", "sheet3",
"sheet7")).Copy
ActiveWorkbook.SaveAs Filename:="C:\TEMP\ " & strFileName & ".xls">>
(the strfileName is a date)
This code copies the sheets but none of the macros / VB Code
The problem i have is that when i open the book (date.xls) it either asks to
update links or updates regardless (if the setting is enabled under options)
Is there any way to adapt/add to the above code to add an entry to the VB
Code 'ThisWorkbook' (When the book opens) to disable the automatic updating
of links
I believe the line i need to add is something like:-
<<updateLinks = False>>
Any Help would be appreciated
Paul