Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I've a workbook called argos.xls, which is the starting file.
In this workbook data is entered by the users and then saved by using a macro. The filename is constructed from the data entered. When this macro is run and the filename changes from argos.xls to whatever.xls also the reference to that specific macro changes. When opening argos.xls the macro reference is 'whatever.xls'!macro1. Since the workbook is available through our network and users sometimes delete files, I have to manually update the macro references. Is there a way to prevent or lock the macro reference to the original workbook? Louis |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You should use THISWORKBOOK to refference worksheets in the same workbook as
the macro. "Louis Sweere" wrote: I've a workbook called argos.xls, which is the starting file. In this workbook data is entered by the users and then saved by using a macro. The filename is constructed from the data entered. When this macro is run and the filename changes from argos.xls to whatever.xls also the reference to that specific macro changes. When opening argos.xls the macro reference is 'whatever.xls'!macro1. Since the workbook is available through our network and users sometimes delete files, I have to manually update the macro references. Is there a way to prevent or lock the macro reference to the original workbook? Louis |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Pivot Table Filename reference in Spreadsheet XML issue | Excel Discussion (Misc queries) | |||
Variable in a filename reference in Excel 2000 | Excel Discussion (Misc queries) | |||
filename in macro | Excel Discussion (Misc queries) | |||
Excel - print to .pdf using filename reference from cell | Excel Discussion (Misc queries) | |||
Reference in a filename.. | Excel Worksheet Functions |