Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi All, Question is for either WorkBook Open or WorkBook Close. Scenario # 1: Code in WorkBook Open. Scenario # 2: Code in General Module with a Call in WorkBook Open. Is there any advantages or disavantages to either scenario, other than the call method uses more code? -- Desert Piranha ------------------------------------------------------------------------ Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934 View this thread: http://www.excelforum.com/showthread...hreadid=515617 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Both are workable, but scenario #2 is more general as that procedure can
easily be called elsewhere. Personally, I try to just use the event code in Thisworkbook, and any common routines that get called are put in a general module. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Desert Piranha" <Desert.Piranha.23o22n_1140671403.4385@excelforu m-nospam.com wrote in message news:Desert.Piranha.23o22n_1140671403.4385@excelfo rum-nospam.com... Hi All, Question is for either WorkBook Open or WorkBook Close. Scenario # 1: Code in WorkBook Open. Scenario # 2: Code in General Module with a Call in WorkBook Open. Is there any advantages or disavantages to either scenario, other than the call method uses more code? -- Desert Piranha ------------------------------------------------------------------------ Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934 View this thread: http://www.excelforum.com/showthread...hreadid=515617 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi Bob, Thanks for your info, i appreciate it. Thanks Dave Bob Phillips Wrote: Both are workable, but scenario #2 is more general as that procedure can easily be called elsewhere. Personally, I try to just use the event code in Thisworkbook, and any common routines that get called are put in a general module. -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Desert Piranha" <Desert.Piranha.23o22n_1140671403.4385@excelforu m-nospam.com wrote in message news:Desert.Piranha.23o22n_1140671403.4385@excelfo rum-nospam.com... Hi All, Question is for either WorkBook Open or WorkBook Close. Scenario # 1: Code in WorkBook Open. Scenario # 2: Code in General Module with a Call in WorkBook Open. Is there any advantages or disavantages to either scenario, other than the call method uses more code? -- Desert Piranha ------------------------------------------------------------------------ Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934 View this thread: http://www.excelforum.com/showthread...hreadid=515617 -- Desert Piranha ------------------------------------------------------------------------ Desert Piranha's Profile: http://www.excelforum.com/member.php...o&userid=28934 View this thread: http://www.excelforum.com/showthread...hreadid=515617 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run worksheet module code from workbook module? | Excel Programming | |||
General ?? regarding Macro or Module size in a spreadsheet | Excel Programming | |||
Automatically Delete WorkBook 2 modules by using Workbook 1 module | Excel Programming | |||
General protection fault in module HPPCL5F4.DLL at 0002:000006c2. | Excel Discussion (Misc queries) | |||
Copy VBA Module and Form from Workbook to another workbook | Excel Programming |