View Single Post
 
Old 06-30-2016, 12:43 AM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,158
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I would draw all the lines you want and then label them so they can be individually treated. Then you can flip their 'visibility' property with your code. This is far easier as you don't need to fiddle with their endpoint locations and colours/width/pattern etc in your code.

An example showing how easy it is to toggle visibility on a couple of lines is below
Code:
Sub HideALine()
  With ActiveDocument
    .Shapes(1).Visible = Not .Shapes(1).Visible
    .Shapes(2).Visible = Not .Shapes(2).Visible
  End With
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote