I am using sendkeys in a template, only the sendkeys aren't working! in Word 97 the command is:
SendKeys "%vzp~"
should set the page to fit the screen width.
what happens: nothing. no error, no resize.
when I step through the code, it hits the code but produces no error. rebooted...
Wondering why this generates an error (Word 97, as a new file from a template):
ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
error:
Run-time error '91'
Object variable or With Block variable not set
It doesn't generate the error if I just click on it, however (as opposed to...
Wondering why this generates an error (Word 97, as a new file from a template):
ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
error:
Run-time error '91'
Object variable or With Block variable not set
It doesn't generate the error if I just click on it, however (as opposed to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.