![]() |
#2
|
|||
|
|||
![]()
Because floating objects are not inlineshapes.
Code:
Sub AddBorderToShape() Dim oShp As Shape On Error Resume Next Set oShp = Selection.ShapeRange(1) MsgBox Err.Number If Err.Number <> 0 Then Exit Sub With oShp .Line.ForeColor.RGB = RGB(0, 0, 0) .Line.Weight = 4 .Line.DashStyle = msoLineSolid End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
BLUEPUPIL | Word VBA | 2 | 04-28-2019 03:14 PM |
![]() |
voyagerone | Drawing and Graphics | 3 | 05-31-2016 09:55 PM |
Picture Formatting Problem | thowes2 | Word | 1 | 04-24-2013 05:24 PM |
![]() |
mayj | Word | 1 | 04-02-2013 03:09 AM |
![]() |
qwertyjjj | Word | 5 | 01-10-2013 09:49 AM |