Trust Access to Visual Basic Project

F

Farah

Hello,

Is it possible to do something like this through a code:


Code
-------------------
Sub Farah()
If 'Trust to Visual Basic Project' is Already Checked Then
' Do certain action (i will mention my code here)

Otherwise if it is not checked, Then
' do the following

Application.SendKeys "%T"
Application.SendKeys "M"
Application.SendKeys "S", True
Application.SendKeys "^{PGDN}"
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys "{TAB}"
Application.SendKeys " ", True
Application.SendKeys "~", True

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top