AdorableVB
AdorableVB

Reputation: 1393

Press/simulate keyboard keys in access vba

I am automating a process in my office, and saving a pdf file is part of it. So how can I save it? I need to press Ctr+Shift+s .. I see solutions here but its in java. Looking for anyone who can share ways on how to simulate this. Also tried SendKeys but I can't pull Ctr and Shift.

SendKeys "S"

SendKeys "{TAB}"

Is this possible? Or are there other ways to do this?

Upvotes: 2

Views: 4296

Answers (1)

Andre
Andre

Reputation: 27644

The keyboard modifiers have a special syntax, see the documentation.

Ctrl + Shift + s = SendKeys "^+s"

Upvotes: 6

Related Questions