-
WSRajesh
AskWoody LoungerThanks for your input.
Both are there in the proper directories. No solution yet.
Could it be that a font file is corrupt? Just thinking aloud. -
WSRajesh
AskWoody LoungerThanks. It worked. However, recomputing the new margins was time-consuming. Mainly because the requirement was very precise.
Need to develop an Excel Spreadsheet Model to compute new margins, I think. Will do it one of these days.
-
WSRajesh
AskWoody LoungerHere goes the code. It was written some time back, and I haven’t run it again to iron out any deficiencies. Also, not too well-documented. Sorry for that.
Sub insertimage()
‘
‘ insertimage Macro
‘ Macro recorded 1/5/01 by Rajesh H
‘
‘ Inserting a top aligned text box‘For I = 0 To 1
ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 90#, _
72#, 261#, 90#).Select
Application.ScreenUpdating = False
Selection.ShapeRange.TextFrame.TextRange.Select
Selection.Collapse
Selection.ShapeRange.Select
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 0.75
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 90#
Selection.ShapeRange.Width = 340#
Selection.ShapeRange.TextFrame.MarginLeft = 0#
Selection.ShapeRange.TextFrame.MarginRight = 0#
Selection.ShapeRange.TextFrame.MarginTop = 0#
Selection.ShapeRange.TextFrame.MarginBottom = 0#
Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionColumn
Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionPage
Selection.ShapeRange.Left = wdShapeCenter
Selection.ShapeRange.Top = wdShapeTop
Selection.ShapeRange.LockAnchor = False
Selection.ShapeRange.WrapFormat.AllowOverlap = False
Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
Selection.ShapeRange.WrapFormat.DistanceTop = 0
Selection.ShapeRange.WrapFormat.DistanceBottom = 18
Selection.ShapeRange.WrapFormat.DistanceLeft = 9
Selection.ShapeRange.WrapFormat.DistanceRight = 9
Selection.ShapeRange.WrapFormat.Type = wdWrapTopBottom
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 0.75
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 90#
Selection.ShapeRange.Width = 261#
Selection.ShapeRange.TextFrame.MarginLeft = 0#
Selection.ShapeRange.TextFrame.MarginRight = 0#
Selection.ShapeRange.TextFrame.MarginTop = 0#
Selection.ShapeRange.TextFrame.MarginBottom = 0#
Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionColumn
Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionMargin
Selection.ShapeRange.Left = wdShapeCenter
Selection.ShapeRange.Top = wdShapeTop
Selection.ShapeRange.LockAnchor = False
Selection.ShapeRange.WrapFormat.AllowOverlap = False
Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
Selection.ShapeRange.WrapFormat.DistanceTop = 0
Selection.ShapeRange.WrapFormat.DistanceBottom = 18
Selection.ShapeRange.WrapFormat.DistanceLeft = 0
Selection.ShapeRange.WrapFormat.DistanceRight = 0
Selection.ShapeRange.WrapFormat.Type = wdWrapTopBottom
Application.ScreenUpdating = True‘Next I
‘ comes over here
Fname = InputBox(“Enter the file name”, “File Name”, “Pic01f”)
On Error GoTo imgerrormsgSelection.InlineShapes.AddPicture FileName:= _
“H:ARTWORKCurrentJobPictures” & Fname & “.eps”, LinkToFile:=True, SaveWithDocument _
:=FalseSelection.MoveLeft Unit:=wdCharacter, Count:=1, Extend:=wdExtend
Selection.InlineShapes(1).Reset
Y = Selection.InlineShapes(1).Height
x = Selection.InlineShapes(1).Width
Selection.MoveRight Unit:=wdCharacter, Count:=1Selection.ShapeRange.Height = Y
Selection.ShapeRange.Width = xSelection.MoveLeft Unit:=wdCharacter, Count:=1
‘Another text box for Image Caption
ActiveDocument.Shapes.AddTextbox(msoTextOrientationHorizontal, 90#, _
72#, 261#, 90#).Select
Application.ScreenUpdating = False
Selection.ShapeRange.TextFrame.TextRange.Select
Selection.Collapse
Selection.ShapeRange.Select
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 0.75
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 90#
Selection.ShapeRange.Width = 340#
Selection.ShapeRange.TextFrame.MarginLeft = 0#
Selection.ShapeRange.TextFrame.MarginRight = 0#
Selection.ShapeRange.TextFrame.MarginTop = 0#
Selection.ShapeRange.TextFrame.MarginBottom = 0#
Selection.ShapeRange.LockAnchor = False
Selection.ShapeRange.WrapFormat.AllowOverlap = False
Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
Selection.ShapeRange.WrapFormat.DistanceTop = 0
Selection.ShapeRange.WrapFormat.DistanceBottom = 18
Selection.ShapeRange.WrapFormat.DistanceLeft = 9
Selection.ShapeRange.WrapFormat.DistanceRight = 9
Selection.ShapeRange.WrapFormat.Type = wdWrapTopBottom
Selection.ShapeRange.Fill.Visible = msoFalse
Selection.ShapeRange.Fill.Transparency = 0#
Selection.ShapeRange.Line.Weight = 0.75
Selection.ShapeRange.Line.DashStyle = msoLineSolid
Selection.ShapeRange.Line.Style = msoLineSingle
Selection.ShapeRange.Line.Transparency = 0#
Selection.ShapeRange.Line.Visible = msoFalse
Selection.ShapeRange.LockAspectRatio = msoFalse
Selection.ShapeRange.Height = 90#
Selection.ShapeRange.Width = 340.15
Selection.ShapeRange.TextFrame.MarginLeft = 0#
Selection.ShapeRange.TextFrame.MarginRight = 0#
Selection.ShapeRange.TextFrame.MarginTop = 0#
Selection.ShapeRange.TextFrame.MarginBottom = 0#
Selection.ShapeRange.RelativeHorizontalPosition = _
wdRelativeHorizontalPositionColumn
Selection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionMargin
Selection.ShapeRange.Left = wdShapeCenter
Selection.ShapeRange.Top = Y
Selection.ShapeRange.LockAnchor = False
Selection.ShapeRange.WrapFormat.AllowOverlap = False
Selection.ShapeRange.WrapFormat.Side = wdWrapBoth
Selection.ShapeRange.WrapFormat.DistanceTop = 0
Selection.ShapeRange.WrapFormat.DistanceBottom = 18
Selection.ShapeRange.WrapFormat.DistanceLeft = 0
Selection.ShapeRange.WrapFormat.DistanceRight = 0
Selection.ShapeRange.WrapFormat.Type = wdWrapTopBottom
Application.ScreenUpdating = TrueSelection.ShapeRange.RelativeVerticalPosition = _
wdRelativeVerticalPositionMargin
Selection.ShapeRange.Top = Y‘Comes over here
imgerrormsg:
MsgBox “Check-it-out the image name in H:ArtworkCurrentJobPictures*.* Path”, vbCritical
End Sub -
WSRajesh
AskWoody LoungerJust beautiful. The idea is simplicity itself, and can even be controlled through VBA.
-
WSRajesh
AskWoody LoungerNo, I am just drawing an analogy for how it seems to work.
-
WSRajesh
AskWoody LoungerThanks, Phil, for your interest. In the few days I have been “lounging”, I have become quite a fan of yours.
Will try and do that when I get back into office after the weekend.
Rajesh
-
WSRajesh
AskWoody LoungerNeed a solution desperately!
-
WSRajesh
AskWoody LoungerIn Word 97, if you defined a style with space above and another identical in all respects except with no space above, then applying the first style to a para would cause the other style to be automatically applied wherever the space above occurred after a “space below” style or at the top of a page. You could always change this manually like undoing an AutoCorrect, but that choice seems to have disappeared in Word 2000 so we are now at the mercy of Word’s “intelligence”.
-
WSRajesh
AskWoody LoungerThanks again for the em-dash idea. (Ctrl Alt -) Neat.
-
WSRajesh
AskWoody LoungerThanks, Andrew, for the indent idea. Thanks, moreover for the promptness. It works for reducing the width of the separator. That set me thinking and I got multiple solutions to this problem. My supplementary comments are:
Changing the pt size only reduces the white space above the separator.
The separator does not seem to be text but some kind of object, not an Autoshape because I cannot manipulate it by selecting it.
The indent does not work if I want a longer-than-2 inches separator; for that, I can copy the Footnote Continuation Separator and apply the right indent.
I have thought of an inelegant method of getting a similar separator of any width: apply Format-Font-Strikethrough to the Paragraph, delete the existing separator, Clear All Tabs, and set a Tab at the point where you want the separator to end. Then, Insert a Tab.
However, with this solution, thickness of the separator cannot be adjusted. For that, it may be better to apply underlining instead of strikethrough, and raise the font position by about 3 pts.
But the question: What kind of an object is the default separator, remains unannswered.
-
WSRajesh
AskWoody LoungerYou can find out if all the Fonts used in the document are actually installed, or whether substitute fonts which often are close approximations, are being used to display the text, in the following manner in Word 2000.
Open the document, and go to Tools-Options-Compatibility and click on the Font Substitution Button.
Helvetica is a Type 1 Font and is usually displayed in Arial which is a close True-type equivalent.
-
WSRajesh
AskWoody LoungerWe have resolved this problem fairly elegantly by writing a single macro to (a) create a text box with the required defaults like no internal margins, etc; (
pop up a dialog box asking user to specify figure file name; © retrieve and place the figure into the text box; (d) capturing the height and width of the figure as variables, and (e) applying the value of these variables to the dimensions of the text box within which the figure is contained.
All this is done seamlessly : the users only click a button which runs the macro called Insert Image, and then provide the path and name of the figure to be inserted. Often, we even hard-code the path in the macro so that, for a particular job, the user has to choose from a list of figure files meant for a particular job only.
The figure is placed by default at one corner (top left or bottom right) or centred at the bottom or top of the page, depending on the job.
-
WSRajesh
AskWoody LoungerI have observed that space before as a Style parameter is suppressed in all paragraphs which are either at the top of a page or immediately follow a paragraph which has a style parameter with space after.
The space before appears whenever you explicitly specify a different space before setting using Format-Paragraph or you explicitly suppress the space below of the preceding paragraph in the same way.
An example of Word’s “intelligence” I suppose.
![]() |
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
-
Excessive security alerts
by
WSSebastian42
2 hours, 14 minutes ago -
* CrystalDiskMark may shorten SSD/USB Memory life
by
Alex5723
3 hours, 2 minutes ago -
Ben’s excellent adventure with Linux
by
Ben Myers
3 hours, 22 minutes ago -
Seconds are back in Windows 10!
by
Susan Bradley
4 hours, 14 minutes ago -
WebBrowserPassView — Take inventory of your stored passwords
by
Deanna McElveen
5 minutes ago -
OS news from WWDC 2025
by
Will Fastie
4 hours, 16 minutes ago -
Need help with graphics…
by
WSBatBytes
2 hours, 57 minutes ago -
AMD : Out of Bounds (OOB) read vulnerability in TPM 2.0 CVE-2025-2884
by
Alex5723
18 hours, 30 minutes ago -
Totally remove or disable BitLocker
by
CWBillow
17 hours, 23 minutes ago -
Windows 10 gets 6 years of ESU?
by
n0ads
5 hours, 19 minutes ago -
Apple, Google stores still offer China-based VPNs, report says
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
Search Forums only bring up my posts?
by
Deo
1 day, 5 hours ago -
Windows Spotlight broken on Enterprise and Pro for Workstations?
by
steeviebops
1 day, 16 hours ago -
Denmark wants to dump Microsoft for Linux + LibreOffice
by
Alex5723
1 day, 9 hours ago -
How to get Microsoft Defender to honor Group Policy Setting
by
Ralph
1 day, 17 hours ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
2 days, 3 hours ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
2 days, 4 hours ago -
Disengage Bitlocker
by
CWBillow
1 day, 18 hours ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
2 days, 6 hours ago -
New Win 11 Pro Geekom Setup questions
by
Deo
1 day, 5 hours ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
2 days, 14 hours ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
2 days, 14 hours ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
2 days, 18 hours ago -
New PC transfer program recommendations?
by
DaveBoston
22 hours, 56 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
2 days, 22 hours ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
2 days, 22 hours ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
2 days, 10 hours ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
1 day, 14 hours ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
1 day, 23 hours ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
3 days, 17 hours ago
Recent blog posts
- Ben’s excellent adventure with Linux
- Seconds are back in Windows 10!
- WebBrowserPassView — Take inventory of your stored passwords
- OS news from WWDC 2025
- Best tools for upgrading a Windows 10 to an 11
- Master patch listing for June 10, 2025
- 24H2 may not be offered June updates
- June 2025 updates are out
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.