0
votes

I've a working PowerPoint macro for Windows:

Public Declare PtrSafe Function GetAsyncKeystate Lib "user32" (ByVal vKey As Long) As Integer

If GetAsyncKeystate(VK_ENTER) < 0 Then msgbox "Enter pressed!"

When I run this on a Mac I get the error: "file not found user32"

Obviously this has to do with the fact that there are no Windows libraries on a mac?

How can I determine if the [enter] is pressed with MAC VBA for PowerPoint. Is there a equivalent? I've searched a lot, nothing found...

1
Have you tried this? stackoverflow.com/questions/27523054/… (the answer with the most upvotes) - braX
yes, tried it al! - Pascal
Maybe explain why it didnt work for you? Mac computers cannot use WIN API calls. - braX
There are some relevant pages in the Apple Communities site, like this one: discussions.apple.com/thread/6068292 - John Korchok

1 Answers