Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello!
I ask for help.
1) As a macro, take the current selection in the field.
2) Clear all selections.
H) Other operations...
4) Return the selections from point 1 to this field.
1) and 4) might be adressed by creating respectively storing the selections into a bookmark and apply it at last again.
- Marcus
To clear all the selection why you need the macro ?? add a button/text box and add action to clear selections
sub test
'You can save your current selection but i think you dont Need to, thats why the following two lines are commented
'set x = ActiveDocument.GetCurrentSelections
's = x.Selections
ActiveDocument.ClearAll
msgbox "DO WHAT YOU WANT TO DO"
ActiveDocument.Back
end Sub
regards
tim
1) and 4) might be adressed by creating respectively storing the selections into a bookmark and apply it at last again.
- Marcus
Thank you!!!
'Remember user selections
ActiveDocument.CreateUserBookmark "BM555"
'Return user selections and delete them
ActiveDocument.RecallUserBookmark "BM555"
ActiveDocument.RemoveUserBookmark "BM555"