-
WSMr. Bob
AskWoody LoungerThanks for the quick response. I’m still having trouble, though. With field codes visible, I can Find.Text = “^d” and I can Find.Text = “INCLUDEPICTURE” but I can’t Find.Text = “^dINCLUDEPICTURE”. Also, when I unlink the graphics while the field codes are visible, the graphics disappear.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerJanuary 23, 2003 at 11:23 am in reply to: File Size Shrinks When Breaking Links? (W2000 SR-1) #647270This might help explain things:
My original Visio drawings were linked and embedded. When I broke the link, the Visio graphics turned into WordArt graphics.
Bob
-
WSMr. Bob
AskWoody LoungerThe standard module, I believe. It’s entered before the procedure that brings up the form. That is:
Option Explicit
Public ActiveUserName As String ‘Active User Name
Sub ChangeUserName()
code code code
Load frmUserName
code code code
End Sub
frmUserName is where the code in question appears.
Application.UserName seems to have a value in the non-form code until I press the button that triggers the event in question.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerI’ve made a little bit of progress with this issue. The file I was working with included many inserted files. The change in page orientation occurs within those inserted files. When I broke the links to the inserted files, which hard-coded the content in the big file, the macro started identifying the page orientation OK.
I’m still having some problems. We use even/odd footers, and the macro doesn’t seem to be working in even-numbered, landscape pages. I’ve attached a zip file that shows the kind of file I’ve been working with.
Also, my current code is at the end of this e-mail.
Thanks everyone for your help,
Bob****************************************
Sub FixSectionOrientation()
Dim oSec As Section
Dim counter1 As Long
Dim tabSetting As Single‘Set tab stop for first section footer
With ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary). _
Range.ParagraphFormat.TabStops
.ClearAll
.Add Position:=InchesToPoints(6), Alignment:=wdAlignTabRight, Leader:=wdTabLeaderSpaces
End With‘Loop through sections, starting with Section 2
For counter1 = 2 To ActiveDocument.Sections.count
Set oSec = ActiveDocument.Sections(counter1)
‘ Link, then unlink content from previous footer
‘ to pull in content and then freeze it in a sectionoSec.Footers(wdHeaderFooterPrimary).LinkToPrevious = True
oSec.Footers(wdHeaderFooterPrimary).LinkToPrevious = False‘ Determine tab setting depending on page orientation
If oSec.PageSetup.Orientation = wdOrientPortrait Then
‘If oSec.PageSetup.PageHeight > oSec.PageSetup.PageWidth ThentabSetting = 6
Else
tabSetting = 9
End If
‘ Set tab stop for section footer
With oSec.Footers(wdHeaderFooterPrimary). _
Range.ParagraphFormat.TabStops
.ClearAll
.Add Position:=InchesToPoints(tabSetting), Alignment:=wdAlignTabRight, Leader:=wdTabLeaderSpaces
End WithNext counter1
Set oSec = Nothing
End Sub
-
WSMr. Bob
AskWoody LoungerThanks for the replies. We do use Link To Previous, to keep the content consistent in the footers. I’ll try turning that off before checking the page orientation.
-
WSMr. Bob
AskWoody LoungerThis looks good. However, I’m still returning a “9999999” value for oSec.PageSetup.Orientation, rather than 0 or 1.
Thanks,
Bob -
WSMr. Bob
AskWoody Loungerakavev,
Did you transfer a project from Word to FM, or did you start a project in FM?
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerEveryone has years of experience with Word, but our FM experience is pretty much limited to the testing we’ve done. The chapters of many of our books are combinations of inserted files, and there have been some formatting problems with material as it goes from the source files to the combined files. To me, these problems can be dealt with, but others don’t see things that way. A lot of our input about FM has come from a writer in another office who worked with FM at another job, but who isn’t familiar with the processes in my office. This might sound prejudiced, but it seems that the decision-making process is being guided by a “Grass is Greener” mentality. That is, FM might help us do other things, so we should consider it.
One other thing, I’ve noticed that the O’Reilly computer books (whose design I really admire) use FM for layout. That seems to me to be the best use of FM–a layout tool for large projects.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerGary,
We produce technical documentation for a software product. They’re mostly text, with pasted-in GIF graphics, and linked Visio drawings. Some of the books have a lot of tables. Right now, we use the Adobe Acrobat PDFMaker to produce PDFs from Word. Those PDFs are used for CD-ROMs and printed manuals.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerPhil,
Thanks for the reply. I found this KB link which helps answer my question:
http://support.microsoft.com/search/previe…b;en-us;Q209729%5B/url%5D
Bob
-
WSMr. Bob
AskWoody LoungerI found this code while searching the list, and it didn’t help. Word seems to think the list has no numbering, so it blanks out the restart numbering and continue list options.
However–good news–I changed the template of the doc from the custom template to Normal.dot, and I was able to restart numbering. I then changed back to the custom template and continued work. Not the best fix, but it’s something.
Thanks for your suggestion,
Bob -
WSMr. Bob
AskWoody LoungerI tried your suggestion, and it showed the same Bullet/Number spec for the style and the problem text. I’ve tried running different macro code on it, and that hasn’t helped either.
Thanks anyway,
Bob -
WSMr. Bob
AskWoody LoungerAre you saying that the library references that were set up when the macros were created might not be valid on the problem PC? The MISSING reference that I’m encountering seems to be spontaneously created on the problem PC.
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerSometimes the path comes up:
{INCLUDEPICTURE “C:DirectoryFile.gif” * MERGEFORMAT}
while other times it comes up:
{INCLUDEPICTURE “DirectoryFile.gif” * MERGEFORMAT}
or
{INCLUDEPICTURE “File.gif” * MERGEFORMAT}
Thanks,
Bob -
WSMr. Bob
AskWoody LoungerGary,
Here’s the AutoOpen code, with company-specific info x’d out:
*****************
Sub AutoOpen()
Dim UserMessage As String
Dim Release As String
Dim UsrNme As String
Dim Solution As String
Dim Change As String
Dim DocCheck As BooleanOriginalUserName = Application.UserName
UsrNme = OriginalUserNameDo Until Release = “xxx” Or Release = “xxx” Or Release = “x” Or Release = “xxx”
UserMessage = “What xxxx or xxx are you working on? You must enter xxxx, xxxx(for xxxx), xxxx (for xxxx), or R (read-only).”
Release = InputBox(UserMessage, “xxxx”, “”)If Release = “xxxx” Or Release = “xxxx” Or Release = “r” Then
Release = UCase(Release)
End If
If Release “xxxx” And Release “xxxx” And Release “R” And Release “xxxx” Then
MsgBox “You must enter xxxx, xxxx, xxxx, or R (read-only).”
End If
Loop
If ActiveDocument.ProtectionType = wdAllowOnlyRevisions Or ActiveDocument.ProtectionType = wdAllowOnlyComments Then
ActiveDocument.Unprotect Password:=”xxxx”
End If
DocCheck = False
If Release = “xxxx” Then
Do Until DocCheck = True
UserMessage = “xxxx”
Release = InputBox(UserMessage, “xxxx”, “”)
Release = UCase(Release)
DocCheck = InStr(Release, “xxxx”) Or InStr(Release, “xxxx”)Loop
End If
If Release = “R” Then
ActiveDocument.TrackRevisions = False
ActiveDocument.Protect Password:=”xxxx”, NoReset:=False, Type:= _
wdAllowOnlyCommentsMsgBox “You have accessed this document for read-only purposes. You cannot make any changes to the document.”
Else
ActiveDocument.Protect Password:=”xxxx”, NoReset:=False, Type:= _
wdAllowOnlyRevisions
Application.UserName = UsrNme + “” + Release
Application.UserAddress = “”
ActiveDocument.TrackRevisions = True
MsgBox “Change-tracking has been turned on in this document. While you are working in this document, your Word user name will be ” + Application.UserName + “. It will be automatically changed back to ” + UsrNme + ” when you close this document.”End If
End Sub
************
Also, I checked the object references on both my machine and the user’s machine, and they were the same.
Thanks,
Bob
![]() |
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 |

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
-
Can’t make Opera my default browser
by
bmeacham
2 hours, 13 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
4 hours, 47 minutes ago -
*Some settings are managed by your organization
by
rlowe44
14 hours, 45 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
16 hours, 59 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
17 hours, 24 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 2 hours ago -
AI slop
by
Susan Bradley
1 day, 1 hour ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 3 hours ago -
Two blank icons
by
CR2
13 hours, 15 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 12 hours ago -
End of 10
by
Alex5723
1 day, 15 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
13 hours, 10 minutes ago -
test post
by
gtd12345
1 day, 21 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 11 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 3 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 1 hour ago -
Upgrading from Win 10
by
WSjcgc50
13 hours, 20 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
16 hours, 54 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 17 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 5 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 19 hours ago -
Are manuals extinct?
by
Susan Bradley
4 hours, 52 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 4 hours ago -
Network Issue
by
Casey H
2 days, 15 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 16 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 16 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 18 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 19 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 20 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 20 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.