Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBA Code to Show Excel Options Dialog Box 1

Status
Not open for further replies.

clouddog9

Technical User
Jul 31, 2009
55
US
I have code that allows vba to create a module and write code to that module, but the if another user needs to use this macro they have to click "Trust access to VBA project object module" checked. It is a one time thing, but is their away to have the excel options dialog box open so they can check the box themselves (since VBA doesn't have code that does this)? Thanks ahead of time.
 
The user has to select proper tab after:
Code:
Application.CommandBars.FindControl(Type:=msoControlButton, ID:=3627.Execute

combo
 
I had a little snafu that needed to be worked out

Code:
Application.CommandBars.FindControl(Type:=msoControlButton, ID:=3627).Execute

There was a parenthesis missing inbetween the 3627 and the .execute.

Still very helpful, thanks combo!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top