Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-30-2016, 12:43 AM
Guessed's Avatar
Guessed Guessed is offline Add a line connecting to identical numbers Windows 10 Add a line connecting to identical numbers Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add a line connecting to identical numbers Getting the line numbers in the footer to line up...? dwarsement Word 3 07-01-2015 01:17 AM
Add a line connecting to identical numbers get rid of line above page numbers at bottom of pages. Joanrichmond Word 1 02-11-2014 12:57 PM
Add a line connecting to identical numbers Connecting text to numbers microsoftnovice Excel 2 10-31-2012 10:43 AM
Add a line connecting to identical numbers Add line numbers to end of each line deboo Word 6 08-20-2012 07:35 PM
Add a line connecting to identical numbers How to paste into another app without line numbers? Moonf4 Word 1 04-18-2011 03:16 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:43 PM.


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