#1
|
|||
|
|||
Add a line connecting to identical numbers
Hello everyone!
I'm making models of word documents for my association, and i'm looking for a way that lines appear automatically when a number is present à two points. it's not necesseraly a completely horizontal line, it may be a bit leaning. here is a picture of what I would like to do: The column on the left doesn't move, the numbers are allways in that order. the column on the right will have the numbers changing, so I was planning to make a field with a list of numbers to choose, and when that choice is done, the line should appear automatically betwenthe two identical numbers. the problem is that I don't know if its possible and if it is, how to do it. thanks for the help Maestrie Edit: My Office version is 2016, but the file has to work at least with 2013 version Last edited by Maestrie; 06-29-2016 at 12:58 AM. Reason: adding office version |
#2
|
|||
|
|||
Hello,
Any ideas? I noticed there was the bookmark and maybe if we could make a condition, like if the number is the same in those two bookmarks, then put a line connecting them If someone has an idea, I would be very thankfull, because i'm running out of myself. thanks for the help again. |
#3
|
||||
|
||||
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 |
#4
|
|||
|
|||
Hello Guessed,
Firts of all, thanks for replying. May I Ask how you do that? I don't even Know how to use macros, so I don't know where to put that text. And I precise that the lines may be randomly set, it isn't every time the same configuration. So if I understand well, you are telling me to make a hundred lines for every possibility and hide them after? That does'nt bothers me, but pleace just tell me how to do It. And by the way, how can i Make a condition so that if it is, for example the line 9 in my picture, that changes the transparency of the line? sorry, I may ask a bit too much, I don't know what time it represents to do that. maybe if you juste made me an example for one line, I could do the others if it's more simple to you. Anyway, thank you for replying. Maestrie |
#5
|
||||
|
||||
This task requires extensive vba coding to do in Word. If you don't know how to write code then it is WAY TOO DIFFICULT for you to attempt.
Nothing like this can happen 'automatically' without the computer being told via VBA: 1. What to put on the left hand column and in what order (presumably randomised in some way) 2. What to put on the right hand column and in what order (presumably also randomised) 3. How to relate elements on the left to elements on the right 4. What the lines should look like in terms of colour/thickness/positioning 5. How to reveal the lines one at a time in response to some user-initiated triggers.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#6
|
|||
|
|||
i'm Indeed not into writing code.
I guess i'll have to make it manually. Thanks anyway for answering me. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting the line numbers in the footer to line up...? | dwarsement | Word | 3 | 07-01-2015 01:17 AM |
get rid of line above page numbers at bottom of pages. | Joanrichmond | Word | 1 | 02-11-2014 12:57 PM |
Connecting text to numbers | microsoftnovice | Excel | 2 | 10-31-2012 10:43 AM |
Add line numbers to end of each line | deboo | Word | 6 | 08-20-2012 07:35 PM |
How to paste into another app without line numbers? | Moonf4 | Word | 1 | 04-18-2011 03:16 PM |