Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have tried to save the name of the opened file to variable, so that I can
use it in other modules and worksheets. I have the following auto_open sub: Sub auto_open() Global filename As Variant filename = Application.ThisWorkbook.Name End Sub This doesn't work, I have the Compile error message: Invalid attribute in Sub or Function. Auto_open sub in the module, so what is wrong in this code? Or is there any other way to do this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Global variable | Excel Discussion (Misc queries) | |||
Global Variable | Excel Discussion (Misc queries) | |||
Global Variable | Excel Programming | |||
why is it saying sheetcnt is "variable not defined" how to do a global variable to share over multiple functions in vba for excel? | Excel Worksheet Functions | |||
Auto_open and environ variable error cannot find library | Excel Programming |