Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to make subs/procs can only be called from within the workbook they belong to?
Hi,
Can someone tell me if (and how) I can prevent subs and procedures in a workbook to be called from outside that workbook? Any help will be greatly appreciated. -- HTH Arnoud |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to make subs/procs can only be called from within the workbook they belong to?
Arnoud,
Put "Option Private Module" at the top of the code module containing the code. -- Cordially, Chip Pearson Microsoft MVP - Excel www.cpearson.com "Arnoud Oortwijk" wrote in message ... Hi, Can someone tell me if (and how) I can prevent subs and procedures in a workbook to be called from outside that workbook? Any help will be greatly appreciated. -- HTH Arnoud |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
how to make subs/procs can only be called from within the workbook they belong to?
Class modules whose Instancing property is set to Private (the default) are
also invisible outside the workbook. -- Bob Kilmer "Arnoud Oortwijk" wrote in message ... Hi, Can someone tell me if (and how) I can prevent subs and procedures in a workbook to be called from outside that workbook? Any help will be greatly appreciated. -- HTH Arnoud |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
SIZE Window, Tile, Worksheet, Workbook, Whatever it's called. | New Users to Excel | |||
how to I make member list that indicates when subs due | Excel Worksheet Functions | |||
When I open a workbook, another one called Book1 is also opened. W | Excel Discussion (Misc queries) | |||
why is an Excel file called a workbook? | Excel Discussion (Misc queries) | |||
Do the Addins belong to a workbook, or are they global to all workbooks loaded? | Excel Programming |