Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 04-20-2012, 08:18 PM
macropod's Avatar
macropod macropod is offline Use macro to place line style around graphic Windows 7 64bit Use macro to place line style around graphic Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi,

Try something along the following lines:
Code:
Sub Demo()
Application.ScreenUpdating = False
With Selection.InlineShapes(1).Borders
  .OutsideLineStyle = wdLineStyleThickThinSmallGap
  .OutsideLineWidth = wdLineWidth450pt
End With
Application.ScreenUpdating = True
End Sub
Note the 'wdLineWidth450pt' setting. This is the nearest to your 4pt spec. Word has numerous other LineWidth constants, ranging from to 025pt (0.25pt) to 600pt (6pt).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Table Style ubns Word VBA 1 04-16-2012 05:01 AM
Don't indent the fist line of the first paragraph after a style change Inspirement Word 1 04-08-2012 05:30 AM
Use macro to place line style around graphic Style Replaced When Deleting a Line WordHostage Word 2 11-26-2011 11:24 AM
Visio connector custom line or fill style savaden Visio 0 11-14-2011 11:35 AM
Use macro to place line style around graphic What “style” is used by the current line. Word 2007. persist Word 2 04-07-2010 09:52 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft