Hi,
I wrote a Workbook_Open macro to create a custom menu and stored it in the ThisWorkbook module of my Personal.xls. I did this yesterday, and I’ve experienced some problems with Excel running macros from my Personal.xls since. Is this a practice to be avoided? I looked online and, while I didn’t see any counsel against doing so, no one in any code examples that I saw did it, either.
Thanks a lot.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Workbook_Open in Personal.xls (2003)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Workbook_Open in Personal.xls (2003)
- This topic has 6 replies, 4 voices, and was last updated 18 years, 3 months ago.
AuthorTopicWSJogoDoBicho
AskWoody LoungerJanuary 30, 2007 at 11:21 pm #439245Viewing 1 reply threadAuthorReplies-
WSpieterse
AskWoody LoungerJanuary 31, 2007 at 4:45 am #1049224I tend to put as little code in ThisWorkbook as I possibly can. For one: Editing in the VBA editor leaves behind all sorts of junk (you cannot see). Normal modules can be cleaned up by exporting, deleting and importing them. But the thisworkbook module cannot be removed; you must rebuild the workbook. Also, some code only works well in normal modules.
-
WSBrookBoy
AskWoody Lounger -
WSpieterse
AskWoody LoungerJanuary 31, 2007 at 1:47 pm #1049287Well, it’s not exactly about particular types of code, but the thisworkbook module is a class module and as such behaves itself differently than a normal module.
If you don’t have the habit of fully qualifying your objects, code in thisworkbook sometimes doesn’t work, where-as when you place the exact same cod ein a normal module it does.I have no examples at hand, because I’m speaking from experience I’ve had with other people asking questions in forums (like this one), which were solved by moving the code to a normal module.
Another thing I often do in the Workbook_open event is NOT call the initialisation routines directly. Rather I use Application.Ontime to set an event that will run the init routine.
The net effect is, that the init sub runs *after* Excel is fully loaded (including its addins).
-
-
-
WSJogoDoBicho
AskWoody Lounger
H. Legare Coleman
AskWoody Plus-
WSJogoDoBicho
AskWoody LoungerJanuary 31, 2007 at 3:07 pm #1049314HI Legare,
The problems were:
a) some macros in Personal.xls weren’t being found when I ran them.
a couple of crashes
c) This morning, I sent a new workbook to someone, and suddenly she got one of my personal toolbars on her screen, although of course the macros it runs weren’t present.
(We’ve got a heavily protected environment. I ran a full scan anyway and came up with no viruses etc.)
This last problem made me suspect that my xlb file was corrupt, so I deleted it. I also moved the code from thisworkbook in Personal per Jan. These two actions seem to have cleared up the problems.
Thanks.
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Image for Windows TBwinRE image not enough space on target location
by
bobolink
3 hours, 2 minutes ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
3 hours, 47 minutes ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 hours, 39 minutes ago -
Multiple Partitions?
by
CWBillow
11 hours, 59 minutes ago -
World Passkey Day 2025
by
Alex5723
11 hours, 22 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
1 day, 2 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
14 hours, 13 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
1 day, 7 hours ago -
Win11 24H4 Slow!
by
Bob Bible
1 day, 7 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
1 day, 4 hours ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
1 day, 9 hours ago -
‘Minority Report’ coming to NYC
by
Alex5723
1 day, 5 hours ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
1 day, 18 hours ago -
Tracking content block list GONE in Firefox 138
by
Bob99
1 day, 17 hours ago -
How do I migrate Password Managers
by
Rush2112
1 day, 1 hour ago -
Orb : how fast is my Internet connection
by
Alex5723
1 day, 3 hours ago -
Solid color background slows Windows 7 login
by
Alex5723
2 days, 5 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
2 days, 4 hours ago -
Security fixes for Firefox
by
Susan Bradley
1 day, 4 hours ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
2 days, 16 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
3 days, 1 hour ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
2 days, 16 hours ago -
Return of the brain dead FF sidebar
by
EricB
2 days, 3 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
1 day, 6 hours ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
8 hours, 54 minutes ago -
The local account tax
by
Susan Bradley
2 days, 5 hours ago -
Recall is back with KB5055627(OS Build 26100.3915) Preview
by
Alex5723
3 days, 14 hours ago -
Digital TV Antenna Recommendation
by
Win7and10
3 days, 7 hours ago -
Server 2019 Domain Controllers broken by updates
by
MP Support
4 days, 2 hours ago -
Google won’t remove 3rd party cookies in Chrome as promised
by
Alex5723
4 days, 4 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.