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, 2 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
-
Boot Sequence for Dell Optiplex 7070 Tower
by
Serge Carniol
1 hour, 27 minutes ago -
OTT Upgrade Windows 11 to 24H2 on Unsupported Hardware
by
bbearren
2 hours, 25 minutes ago -
Inetpub can be tricked
by
Susan Bradley
3 hours, 44 minutes ago -
How merge Outlook 2016 .pst file w/into newly created Outlook 2024 install .pst?
by
Tex265
30 minutes ago -
FBI 2024 Internet Crime Report
by
Alex5723
6 hours, 14 minutes ago -
Perplexity CEO says its browser will track everything users do online
by
Alex5723
3 hours, 39 minutes ago -
Login issues with Windows Hello
by
CWBillow
17 hours, 20 minutes ago -
How to get into a manual setup screen in 2024 Outlook classic?
by
Tex265
5 hours, 14 minutes ago -
Linux : ARMO rootkit “Curing”
by
Alex5723
1 day, 4 hours ago -
Employee monitoring app leaks 21 million screenshots in real time
by
Alex5723
1 day, 4 hours ago -
Google AI is now hallucinating idioms
by
Alex5723
1 day, 5 hours ago -
april update
by
69800
7 hours, 41 minutes ago -
Windows 11 Insider Preview build 27842 released to Canary
by
joep517
1 day, 6 hours ago -
Quick Fix for Slowing File Explorer
by
Drcard:))
1 day, 6 hours ago -
WuMgr not loading?
by
LHiggins
2 hours, 21 minutes ago -
Word crashes when accessing Help
by
CWBillow
10 hours, 42 minutes ago -
New Microsoft Nag — Danger! Danger! sign-in to your Microsoft Account
by
EricB
1 day, 6 hours ago -
Blank Inetpub folder
by
Susan Bradley
1 day, 3 hours ago -
Google : Extended Repair Program for Pixel 7a
by
Alex5723
1 day, 16 hours ago -
Updates seem to have broken Microsoft Edge
by
rebop2020
1 day, 3 hours ago -
Wait command?
by
CWBillow
1 day, 10 hours ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
1 day, 23 hours ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
2 days, 6 hours ago -
Windows 10 finally gets fix
by
Susan Bradley
2 days, 14 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
2 days, 16 hours ago -
How to use Skype after May?
by
Joann
1 day ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
2 days, 10 hours ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
3 days, 5 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
3 days, 6 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
2 hours, 36 minutes 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.