PDA

View Full Version : Closed: sendkeys



ray1
10-25-2009, 05:24 PM
Hi all,

I would like to enable the "Trust access to vba project object model".(authorized on the application).
I am trying to do this using using the sendkeys sub in excel 2007 since i think this is the only way to do it.
Its working on windows vista, and the same code is not working on xp (the trust center window is displayed but no other action is performed). any advices, ideas? Not sure if this is an OS related pb or not.
Thanks.



SendKeys "%T", True
SendKeys "M", True
SendKeys "S", True
SendKeys "{TAB}", True
SendKeys "{TAB}", True
SendKeys " ", True
SendKeys "{Enter}", True

lucas
10-25-2009, 08:16 PM
I'm afraid that what you are trying to do is potentially dangerous and considered hacking.

I'm going to lock this thread for now.

I hope you understand. Please read our FAQ.