G
Guest
Why is it I can never understand the syntax mentioned in VBA Help?
I'm trying to use send keys at the moment and VBA help says as an example to
press Alt-F-X
Application.SendKeys("%fx")
So when I try and use Alt-F4 to exit WinAmp I type the code:
C:\Program Files\Winamp\winamp.exe.SendKeys("%{f4}")
and the moment I move to another line it comes up with the error message:
"Compile error: Expected: line number or statement or end of statement" and
it highlights the first "backslash \".
Judging from other code experts on this site have taught me, I would have
guessed "speach marks" should go around the path to the application, but that
doesn't work and VBA help doesn't suggest it.
Thanks in advance
Phil
I'm trying to use send keys at the moment and VBA help says as an example to
press Alt-F-X
Application.SendKeys("%fx")
So when I try and use Alt-F4 to exit WinAmp I type the code:
C:\Program Files\Winamp\winamp.exe.SendKeys("%{f4}")
and the moment I move to another line it comes up with the error message:
"Compile error: Expected: line number or statement or end of statement" and
it highlights the first "backslash \".
Judging from other code experts on this site have taught me, I would have
guessed "speach marks" should go around the path to the application, but that
doesn't work and VBA help doesn't suggest it.
Thanks in advance
Phil