If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Sendkeys

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-25-09, 17:47
ray1 ray1 is offline
Registered User
 
Join Date: Oct 2009
Posts: 1
Sendkeys

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?
Thanks.
Code:
SendKeys "%T", True
SendKeys "M", True
SendKeys "S", True
SendKeys "{TAB}", True
SendKeys "{TAB}", True
SendKeys " ", True
SendKeys "{Enter}", True
Reply With Quote
  #2 (permalink)  
Old 10-26-09, 07:25
Colin Legg Colin Legg is offline
Registered User
 
Join Date: Sep 2008
Location: London, UK
Posts: 495
This is an attempt to bypass a security feature of the Excel application. It is not exposed within the Excel object model for a reason. Get the user to do it manually.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On