Home |
Search |
Today's Posts |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Chip;
Ahhhhhhhhhhhh. I see thanks very much! John Baker "Chip Pearson" wrote: John, You can declare variable as public, so that they will be available to all procedures in the project, but you can't assign them a value outside of a procedure. For example, Public Send As String Sub Setup() Send = ActiveWorkbook.Name End Sub Note that Send will contain the name of the ActiveWorkbook when the value is assigned to Send, but will not automatically update if another workbook in made active. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Global Header Setting | Excel Discussion (Misc queries) | |||
Excel global setting for all workbooks? Calculation Automatic | Excel Discussion (Misc queries) | |||
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 | |||
Global Variable -- Excel / VBA | Excel Discussion (Misc queries) | |||
Global variable | Excel Programming |