Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using Windows XP and Office 2007;
Is there a way to obtain the contents of a string constant from another module where the other module in which the const lives is marked "Option Private Module" and the const is declared as: Private Const myConst As String = "MyString"? If possible, could someone please post a generic example on how to do it? If NOT marked private, is a module level Const automatically global, if not, what is it? Thanks for the clarifications! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Change 'Private Const' to 'Public Const'. That should still be visible
throughout the project even with Option Private Module Regards, Peter T "XP" wrote in message ... Using Windows XP and Office 2007; Is there a way to obtain the contents of a string constant from another module where the other module in which the const lives is marked "Option Private Module" and the const is declared as: Private Const myConst As String = "MyString"? If possible, could someone please post a generic example on how to do it? If NOT marked private, is a module level Const automatically global, if not, what is it? Thanks for the clarifications! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Accessibility of a server | Excel Programming | |||
Accessibility to macros | Excel Programming | |||
Password/worksheet-accessibility | Excel Discussion (Misc queries) | |||
Declarations Procedure and Duplicate Declarations | Excel Programming | |||
crash changing const to public const | Excel Programming |