Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to create a macro to connect two objects.
When selecting one object the second is also selected.
use a macro with a if statement and that is all.
Sub WisselWeergaveGrafiek()
set v = ActiveDocument.Variables("TerugNaarGrafiek")
strValue = v.GetContent.String
if strValue=1 then
v.SetContent "0",true
else
v.SetContent "1",true
end if
end Sub
Do you show me a example? Please.
See above
THANK YOU BUT I STILL DO NOT KNOW HOW TO APPLY TO MACRO.
I'll EXPLAIN.
FOR EXAMPLE:
FIRST OBJECT I HAVE THREE CONTRIES:
BRAZIL, EUA, CANADA
SECOND OBJECT I HAVE FOUR CONTRIES:
BRAZIL, EUA, CANADA, MEXICO
WHEN I SELECT THE FIRST OBJECT (FOR EXAMPLE BRAZIL); THE SECOUND OBJECT ALSO IS SELECTED SHOWING BRASIL.
THANKS FOR UNDERSTANDING