![]() |
#1
|
|||
|
|||
![]()
I have an application that inserts a horizontal line in a Word document. I want to check if a horizontal line has already been inserted in the prior line. In other words, I don't want to insert a second horizontal line if there is already one there.
I am using this code to check the prior line. It tells me there is an inline shape, but not if it is a line. Can anyone help me establish if the inline shape is a horizontal line. Selection.MoveUp If Selection.InlineShapes.Count = 0 Then Selection.MoveDown ' Create the line Selection.InlineShapes.AddHorizontalLineStandard ' Line size and alignment Set shpLine = ThisDocument.InlineShapes(ThisDocument.InlineShape s.Count) shpLine.HorizontalLineFormat.PercentWidth = 80 shpLine.HorizontalLineFormat.Alignment = wdHorizontalLineAlignRight End If |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
smart art horizontal line | sgroves20 | Word | 0 | 11-05-2014 08:17 AM |
![]() |
mingming | Word | 1 | 09-14-2014 05:16 AM |
unable to delete a horizontal line | jerryny | Word | 2 | 03-31-2013 05:59 PM |
![]() |
nightkn8 | Word | 12 | 03-25-2013 02:06 PM |
![]() |
JamesT | Word | 3 | 10-29-2011 05:39 PM |