R
Roderick O'Regan
I want to create a VBA routine to attach to a Word XP toolbar button which
when selected will display the AutoText entries relating only to the
template attached to the new active document.
At present I am using SendKeys in the following way to achieve the desired
result but am thinking that there must be a better method of doing this:
SendKeys "%iax" & "%l" & "LTSB Tender" & "{Enter}" & "{Tab}" & "{Enter}",
True
This simulates the reader selecting Insert|AutoText|AutoText, going to the
"Look in" field and then typing "LTSB etc" to select the appropriate
template and then completing the operation of tabbing to the OK button and
selecting it. Crude, I know. But it works. Any new results I apply will also
have to Work in Word 97 as some users are still on that version.
Could anyone help with this challenge, please?
Regards
Rod
when selected will display the AutoText entries relating only to the
template attached to the new active document.
At present I am using SendKeys in the following way to achieve the desired
result but am thinking that there must be a better method of doing this:
SendKeys "%iax" & "%l" & "LTSB Tender" & "{Enter}" & "{Tab}" & "{Enter}",
True
This simulates the reader selecting Insert|AutoText|AutoText, going to the
"Look in" field and then typing "LTSB etc" to select the appropriate
template and then completing the operation of tabbing to the OK button and
selecting it. Crude, I know. But it works. Any new results I apply will also
have to Work in Word 97 as some users are still on that version.
Could anyone help with this challenge, please?
Regards
Rod