Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have comes across some code that has functions that have
not bee declared as either private or public. What does this mean? Is this old syntax or is there a difference bewteen this and private/public. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If there is no declaration, they default to public.
|
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Really? Normally you see Subs and Functions with neither declared.
If undeclared, it defaults to Public. -- HTH RP (remove nothere from the email address if mailing direct) "ExcelMonkey" wrote in message ... I have comes across some code that has functions that have not bee declared as either private or public. What does this mean? Is this old syntax or is there a difference bewteen this and private/public. Thanks |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As a general rule you should explicitly declare all functions and procedures
as being either private or public. Not stating a declaration defaults to public. The code you write should be as private as possible. This makes debugging and modifying a lot easier because by limiting the scope you know what can have an effect outside your current module and what can not. HTH "ExcelMonkey" wrote: I have comes across some code that has functions that have not bee declared as either private or public. What does this mean? Is this old syntax or is there a difference bewteen this and private/public. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Data Validation/Lookup function does function correcty | Excel Worksheet Functions | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions |