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. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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, 4 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
-
Windows 11 Insider Preview build 26200.5641 released to DEV
by
joep517
1 hour, 53 minutes ago -
Windows 11 Insider Preview build 26120.4250 (24H2) released to BETA
by
joep517
1 hour, 55 minutes ago -
Install Office 365 Outlook classic on new Win11 machine
by
WSrcull999
1 hour, 52 minutes ago -
win 10 to win 11 with cpu/mb replacement
by
aquatarkus
2 hours, 44 minutes ago -
re-install Windows Security
by
CWBillow
5 hours, 9 minutes ago -
WWDC 2025 Recap: All of Apple’s NEW Features in 10 Minutes!
by
Alex5723
8 hours, 51 minutes ago -
macOS Tahoe 26
by
Alex5723
3 hours, 4 minutes ago -
Migrating from win10 to win11, instructions coming?
by
astro46
10 hours, 3 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
9 hours, 37 minutes ago -
Recommended watching : Mountainhead movie
by
Alex5723
22 hours, 22 minutes ago -
End of support for Windows 10
by
Old enough to know better
7 hours, 45 minutes ago -
What goes on inside an LLM
by
Michael Covington
6 hours, 49 minutes ago -
The risk of remote access
by
Susan Bradley
1 hour, 27 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
33 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
1 day ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
1 day, 7 hours ago -
EaseUS Partition Master free 19.6
by
Alex5723
7 hours, 51 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
1 day, 20 hours ago -
The EU launched DNS4EU
by
Alex5723
2 days, 9 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
1 day, 23 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
2 days, 14 hours ago -
Set default size for pasted photo to word
by
Cyn
2 days, 20 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
2 days, 8 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
3 days, 19 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
1 day, 12 hours ago -
Small desktops
by
Susan Bradley
5 minutes ago -
Totally disable Bitlocker
by
CWBillow
2 days, 13 hours ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
3 days, 17 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
4 days, 23 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
2 days, 18 hours ago
Recent blog posts
Key Links
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.