Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear,
I'd like to select 2 years using a macro.
This works for only 1 year :
ActiveDocument.GetField("Year").Select "2015"
How can I do for 2 values?
ActiveDocument.GetField("Year").Select "2015", "2016" -> doesn't work
Thank you for your help
Hi Thierrytt,
Try,
ActiveDocument.Fields("Year").Select ("(2015|2016)")
Maybe you can apply this example:Select multiple values from a Field
Thanks but it's not exactly what I want, I'd like to have the possibility to select text values and not only numbers as "Year"
Why you are using macro? Can you tell us exactly what you want to do? I think it is possible by triggers.
See this
Hi Thierrytt,
Try,
ActiveDocument.Fields("Year").Select ("(2015|2016)")
because it's part a pdf printing module using macro