Could somebody please remind me how to do this? It seems to be the only way to debug a baffling problem, and I can’t find the documentation for it.
![]() |
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 |
-
Opening a file without running macros (Word 2003)
Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Opening a file without running macros (Word 2003)
- This topic has 5 replies, 3 voices, and was last updated 17 years, 7 months ago.
AuthorTopicWSjsachs177
AskWoody LoungerOctober 23, 2007 at 4:21 am #445552Viewing 0 reply threadsAuthorReplies-
WSjscher2000
AskWoody LoungerOctober 23, 2007 at 5:59 am #1080633 -
WSjsachs177
AskWoody LoungerOctober 24, 2007 at 3:53 pm #1080828Thanks; that works. There is no need to suppress other macros because this is a debugging situation. Something in the Document_Open macro is making Word crash (“Microsoft Word has encountered an error and must close”), most but not all of the time. I just need to open the document without running the macro so that I can step through it.
I’m now waiting for the problem to recur so that I have something to debug!
-
WSchrisgreaves
AskWoody LoungerOctober 26, 2007 at 9:58 am #1081070>”Microsoft Word has encountered an error and must close”
It may not be a bug in your code.
My best success at resolving this problem is to reconstruct the template completely:- Save a new version
- Run Rob Bovey’s VBA Code Clenaer on the new version, (Options: Do NOT delete exported files, save them to a fresh folder).
- Close the file.
- Create a new template, save it with a name.
- Import the exported files (BAS/CLS/FRM etc.) to the new template.
- Rebuild the toolbar (if any)
- Reset the project properties (name, help file, protection etc.).
If I had to bet, I’d bet that the corruption occurred after a change to a graphic element, e.g. a tioolbar or a GUI form.
-
WSjsachs177
AskWoody LoungerOctober 26, 2007 at 1:45 pm #1081089I suspect you’re right that it’s not a bug in my code. I thought that stepping through the code to find the point of failure would give me a clue to the cause (or at any rate, that nothing else would). Your suggestion sounds promising, and when the problem recurs I will try it.
It’s interesting that you mention toolbars, because for about as long as I have had this problem, the application’s user-defined toolbars have been disappearing spontaneously. (They disappear when a window is deactivated, then activated again.) I have been living with that problem because I don’t have time to fix it, but it never occurred to me that the two problems were connected.
-
WSchrisgreaves
AskWoody LoungerOctober 26, 2007 at 3:34 pm #1081106> the application’s user-defined toolbars have been disappearing spontaneously.
I think that the bug I’m referring to is some form of corruption. I feel that it arises when i have dragged something to/from the toolbar when I maybe shouldn’t have – perhaps while a running macro is paused or interrupted.
There is (to my mind) another bug regarding toolbars whereby the user-defined toolbar for that application persists when I Alt-Tab to the VBE, and if I click on the toolbar, then Alt-Tab back to the VBE, the toolbar stays hidden (as it ought being part of the application).Anyway, chances are that stepping through your code will not reveal any flaw on your part, but rebuilding the template (say 15 minutes) will cause the problem to disappear.
For the time being (grin!)
-
-
-
-
Viewing 0 reply threads -

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
-
Migrating from win10 to win11, instructions coming?
by
astro46
3 hours, 42 minutes ago -
Device Eligibility for Apple 2026 Operating Systems due this Fall
by
PKCano
5 hours, 11 minutes ago -
Recommended watching : Mountainhead movie
by
Alex5723
9 hours, 37 minutes ago -
End of support for Windows 10
by
Old enough to know better
6 hours, 55 minutes ago -
What goes on inside an LLM
by
Michael Covington
1 hour, 36 minutes ago -
The risk of remote access
by
Susan Bradley
2 hours, 4 minutes ago -
The cruelest month for many Office users
by
Peter Deegan
6 hours, 15 minutes ago -
Tracking protection and trade-offs in Edge
by
Mary Branscombe
11 hours, 50 minutes ago -
Supreme Court grants DOGE access to confidential Social Security records
by
Alex5723
18 hours, 27 minutes ago -
EaseUS Partition Master free 19.6
by
Alex5723
5 hours, 38 minutes ago -
Microsoft : Edge is better than Chrome
by
Alex5723
1 day, 7 hours ago -
The EU launched DNS4EU
by
Alex5723
1 day, 20 hours ago -
Cell Phone vs. Traditional Touchtone Phone over POTS
by
280park
1 day, 10 hours ago -
Lost access to all my networked drives (shares) listed in My Computer
by
lwerman
2 days, 1 hour ago -
Set default size for pasted photo to word
by
Cyn
2 days, 7 hours ago -
Dedoimedo tries 24H2…
by
Cybertooth
1 day, 20 hours ago -
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
3 days, 6 hours ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
23 hours, 39 minutes ago -
Small desktops
by
Susan Bradley
24 minutes ago -
Totally disable Bitlocker
by
CWBillow
2 days ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
3 days, 4 hours ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
4 days, 10 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
2 days, 5 hours ago -
Mystical Desktop
by
CWBillow
4 days, 14 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
3 days, 19 hours ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
1 day, 6 hours ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
5 days, 5 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
5 days, 8 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
5 days, 6 hours ago -
What is wrong with simple approach?
by
WSSpoke36
3 days, 4 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.