![]() |
|
#1
|
|||
|
|||
|
I am finding this is a real challenge.
This code supposes to set some properties of a text box. But Word sticks to the manually set defaults for auto shapes even if you try to change the defaults programmatically by using the property "SetShapesDefaultProperties" Code:
With Selection.ShapeRange(1)
With .TextFrame
.MarginLeft = 0
.MarginRight = 0
.MarginTop = 0
.MarginBottom = 0
End With
.LockAnchor = False
.WrapFormat.Type = wdWrapNone
.Fill.Visible = msoFalse
.Line.Visible = msoFalse
End With
Last edited by macropod; 01-01-2017 at 04:36 PM. Reason: Added code tags |
| Tags |
| vba change textbox word |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loop through controls, make certain controls invisible | MacroWizard | Word VBA | 2 | 11-10-2015 02:36 PM |
How to make Section headers (Header 2) invisible at print time?
|
inframan | Word | 7 | 08-10-2012 09:39 PM |
How do I make invisible the lines in the table
|
Snvlsfoal | Word Tables | 1 | 08-11-2011 05:45 AM |
| Object set to invisible yet I can still move its (invisible) animation paths?? | seanspotatobusiness | PowerPoint | 0 | 05-23-2011 03:39 AM |
Make text invisible to printer
|
ilkks | Word | 2 | 05-06-2011 04:26 AM |