Workbook-level public variables
declare it in a general module and initialize it in from any module
General Module:
Public MyVar as Long
in the ThisWorkbook Module
Private Sub Workbook_Open()
MyVar = 6
end Sub
--
Regards,
Tom Ogilvy
"Stefi" wrote in message
...
Hi all,
How can I declare a public variable (e.g. in Workbook_open event) that
will
be valid in all other regular and event modules in the workbook?
Stefi
|