Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I want to write a Marco using VBScript. Upon event rising, the macro should select certain values from the related field. In my case, I have a field with values ranging from 0 to 6. If the user clicks the button, values from 4-6 should be selected.
Something like:
<code>
sub MYBUTTON
set f = ActiveDocument.GetField ("MYFIELD")
f.select (4 to 6)
end sub
</code>
Thanks in advance,
Klaus
hi,
you can use
sub period
mySelect= ">=4" & " <=6"
ActiveDocument.Fields("myfield").Select mySelect
end sub
thanks
hi,
you can use
sub period
mySelect= ">=4" & " <=6"
ActiveDocument.Fields("myfield").Select mySelect
end sub
thanks
Great, it worked!
Thanks a lot,
Klaus