-
WSjoelfinkle
AskWoody LoungerThanks much everyone:
1) Saving to 2003 caused a crash, and the 2003-version file still crashed Access 2007 when attempting to open VBA, but it was able to be opened in 2003, and the form and its code examined there
2) The DECOMPILE switch appeared to repair the file — a life saver. You’d think that “Compact and Repair” might do that, but nooooooo.The root cause? I think it may have been closing the database with a breakpoint set in code. I know this has caused problems for me in previous versions of Word, and at one point the code was breaking there even though the breakpoint wasn’t visible — I was able to stop that behavior with “Clear all breakpoints” but shortly after that the VBA was no longer accessible.
I’ve worked with Access much, much less than I have with Word, but I feel I could already write one of Woody’s “Annoyances” books.
-
WSjoelfinkle
AskWoody LoungerExport to another DB don’t work for that one form, but have you try to import it from another DB. I don’t know if that can make a difference.
Good ol’ ribbon bar, hiding features from me… but nope, doesn’t work. Same crash when I try to import that one form.
Thanks for the pointer, I’m sure I’ll use it, but it didn’t fix me here. I guess I’ll have to re-engineer the darn thing. I may have a very early version that can give me a jump start, but I doubt it.
-
WSjoelfinkle
AskWoody LoungerOnly Acrobat and EndNote — both of which work fine for other users at the same company — although now a second user has seen this behavior.
Thanks for the reply,
Joel -
WSjoelfinkle
AskWoody LoungerAndrew, thanks for the suggestion, but no, Word insists that it’s “really” on the Sharepoint server (the URL spec) even when you save the sucker. Saving it to another location would be a bad thing, because then SharePoint doesn’t know how to check it back in.
I’ve even searched through the registry to see if the temp filename that’s getting created has any relationship to anything (EMC Documentum uses that trick), but it’s not there either — Word must be just storing it in memory, and not telling anybody about it.
The SharedWorkspaces and related objects don’t reveal any clues either — they only insist on knowing about the URL.
If it wasn’t for the security model, I’d consider recording a macro on the fly and reading its contents :^P. Actually, automating the Organizer dialog might be a crude and clumsy solution.The only other solution I’ve found to this particular problem is to use ActiveDocument.CopyStylesFromTemplate — which despite its name can copy from a document too — but it’s not selective, it copies everything.
On the other hand, that routine does not seem to lose paragraph style features either! For my next release, I think I’m probably going to bite that bullet. -
WSjoelfinkle
AskWoody LoungerMay 21, 2008 at 11:41 pm in reply to: OrganizerCopy not copying all attributes of style? (2003) #1110001Follow-up: No, it isn’t sufficient, even run three times. OrganizerCopy does not appear to copy the LeftIndent, RightIndent and Tab Stops. I’ve got code already to do this manually, but due to a change in my specs, I wasn’t running that block of code,
On the other hand, I just found the Document.CopyStylesFromTemplate method — it can’t be limited to specific styles, but it’s faster, and simpler (but will need to wait for my next release)
-
WSjoelfinkle
AskWoody LoungerMay 21, 2008 at 11:37 pm in reply to: Word – Disappearing Adobe Acrobat toolbar (again) (Word 2003, Adobe Acroba #1110000I’ve been in contact with Adobe on these issues — they refuse to admit they’re doing anything wrong.
I’ve got remedies that appear to mostly work, but it’s not easy, and I’m starting to see some negative results from some of it:1) Don’t change the CustomizationContext — this can make your toolbar disappear though, so
2) Make sure you explicitly show your toolbar at startup (and maybe other times too, see below)
3) Do a “CommandBars.ActiveMenuBar.Reset” at startup — note that this makes your template, and possibly Normal.dot mark things as changed, so you may want to do “MacroContainer.Saved=True” and “NormalTemplate.Saved=True”
4) Create a class that initializes an Application object “WithEvents”. Create a routine in it called “Private Sub App_WindowActivate” that will catch when a document is activated, and do steps 2-3 each time.Warnings:
Don’t do these steps if Acrobat isn’t there — you can find it in the ComAddIns collection.
Don’t reset the menu bar if the doc being activated isn’t visibleI have code that does all this, but it’s proprietary to our company. The instructions above should be enough to get you going.
-
WSjoelfinkle
AskWoody LoungerMay 20, 2008 at 3:09 am in reply to: OrganizerCopy not copying all attributes of style? (2003) #1109732Eeewww. Three times? Not what I was hoping to find out. I was hoping you’d say, “Oh, it’s a sign of a corrupted file, try saving it out to XML and reading it back in again.” Most of the time, my code works fine.
-
WSjoelfinkle
AskWoody LoungerI haven’t tried VSTO yet — I don’t have Visual Studio on my 2007 machine, so I’ve not been anxious to start mucking with VSTO. I’ll also take a look at the RibbonCustomizer. It might do the job, it might not, it’s not clear from the docs.
Thanks.
[edit]RibbonCustomizer won’t do squat for that — I’ll have to try VSTO. Gut feeling is that it probably won’t do what I need.
-
WSjoelfinkle
AskWoody LoungerYes, but you can’t add keyboard shortcuts, so far as I can tell, to commands you have added to Office using the customUI.xml file, except for the hovering “keytip” letters. There’s no equivalent to putting, as I said, Control+Alt+1 on a menu item that drops down from a button or split button on the ribbon, which I could easily do in Word 2003 and previous.
The only thing I can do is create a macro for each equivalent command in my custom UI, and use the keyboard shortcut customize option to add shortcuts to those, and perhaps add the keyboard shortcut to the toolTip or superTip. By contrast, the code that the customUI.xml points to is not accessible to the keyboard shortcut command, because they have VBA code that takes parameters. But that still doesn’t make the keyboard shortcut visible to the user.
-
WSjoelfinkle
AskWoody LoungerDecember 15, 2007 at 10:01 pm in reply to: VBA style delete always deletes from active doc (2003) #1088499I did some more experimenting, and doing
oDoc.Activate
before deleting the style makes sure that it gets deleted from oDoc.
And Rudi, yes, I did set a ref to the original active document, and after completion, oOrigDoc.Activate gets me back there.I didn’t try making the invisible doc visible, but active did work.
Still, it’s a bug, a bad bug, but at least i found a way around it.
-
WSjoelfinkle
AskWoody LoungerI’ve been through the first, no help.
The second I can’t seem to get to right now – site problems?In any case, I’ve found some nasty workarounds, requiring callbacks to my template which then execute the built-in functionality, but at least its a single set of callbacks (for Execute, ScreenTip, SuperTip, Pressed, Enabled, etc.) for all the built-ins.
This sounds like it’s a typical Microsoft short-sightedness, not permitting you to change the icon of a built-in, so that commands always look the same, but if there’s no pic, you should have the chance to change it.
-
WSjoelfinkle
AskWoody LoungerApril 28, 2007 at 6:57 pm in reply to: Numbered Headings + Macrobutton in TOC = Bleah!? (2002, 2003) #1062762Andrew — that’s genius. I’ll see if it’ll fly with my very fussy client. I’d tried hidden text, but that didn’t work.
-
WSjoelfinkle
AskWoody LoungerJanuary 29, 2007 at 9:31 pm in reply to: Hyperlink without Style? (2000, 2002, 2003, 2007?) #1049021> I’m probably missing something, but why not store the character style and re-apply it?
Because each character could have a different style or no style.
I’m mainly looking for the generalized case where I can choose whether to slather a Hyperlink style atop the text. -
WSjoelfinkle
AskWoody LoungerJanuary 29, 2007 at 4:42 pm in reply to: Hyperlink without Style? (2000, 2002, 2003, 2007?) #1048962It took a bit of hacking, and I’m not certain this is goof-proof, but here’s a solution to creating links without the Hyperlink Style:
Public Sub InsertCleanLink(oBkmk As Bookmark) Dim r As Range Dim rstart As Long ' save the selection and where the original text started Set r = Selection.Range.Duplicate rstart = Selection.Start ' Start with no text selected, and add a new hyperlink Selection.Collapse wdCollapseStart Selection.Hyperlinks.Add Selection.Range, "", oBkmk.Name, , "###" ' Annoyingly, the above line not only moves the selection, ' but also expanded the r Range set above. ' So now, select the recently inserted text, and trim the r range ' back to the original text r.Start = Selection.End Selection.Start = rstart ' Copy the original text into the hyperlink -- this is the sneaky part Selection.Fields(1).Result.FormattedText = r.FormattedText ' Then get rid of the original text r.Delete Set r = Nothing End Sub
There needs to be some error checking — if the original selection spans cells, it probably can’t create the link, and certainly can’t use the FormattedText copy to move the text. For my purposes, though, this will probably do the job.
I’d appreciate critiques on the code.
-
WSjoelfinkle
AskWoody LoungerYeah, that’s pretty much the case. My clients are asking for tools to prevent changes to styles or new styles being added, and I’m trying to accomodate.
I suggested the idea of all those character styles, and got a resounding “eeeewwwwww”
Once again, I’m sweeping up behind the elephant.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

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
-
Office gets current release
by
Susan Bradley
59 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
6 hours, 21 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 hours, 6 minutes ago -
Stop the OneDrive defaults
by
CWBillow
7 hours, 10 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
17 hours, 6 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
19 hours, 18 minutes ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
19 hours, 36 minutes ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
20 hours, 13 minutes ago -
OpenAI model sabotages shutdown code
by
Cybertooth
20 hours, 50 minutes ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
9 hours ago -
Enabling Secureboot
by
ITguy
16 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 4 hours ago -
No more rounded corners??
by
CWBillow
1 day ago -
Android 15 and IPV6
by
Win7and10
14 hours, 18 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 17 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
1 day, 19 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 14 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 3 hours ago -
May preview updates
by
Susan Bradley
1 day, 14 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 6 hours ago -
Just got this pop-up page while browsing
by
Alex5723
1 day, 19 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 16 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
18 hours, 33 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 18 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
15 hours, 20 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 6 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 5 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
3 days, 20 hours ago -
Another test post
by
gtd12345
3 days, 20 hours ago -
Connect to someone else computer
by
wadeer
3 days, 14 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.