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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Startup configuration by code. 1

Status
Not open for further replies.

Zycmi

IS-IT--Management
Jun 19, 2002
42
CA
I wish to set all of the startup options using a command button,
I have tried the following code:
-------
Private Sub cmdStartupConfig_Click()
Dim temp As String

temp = Application.SetOption("StartUpShowDBWindow", True)

End Sub
-------
Yet an error message saying Expected function or variable as it highlights only the word ".SetOption" within my code. I have also tried the following with and without the brackets or the quote marks:
-------
temp = SetOption("StartUpShowDBWindow", True)
-------
Can anyone help me with the proper syntax to access and set all the available start options?

Thanks, Zycmi
 
Here is some options I manipulate in my Application

Application.SetOption "Show Status Bar", False
Application.SetOption "ShowWindowsInTaskbar", False
Application.SetOption "Show Startup Dialog Box", False
Application.SetOption "Auto Compact", False: ' LATER TRUE
Application.SetOption "Behavior Entering Field", 0
Application.SetOption "Track Name AutoCorrect Info", False
Application.SetOption "Perform Name AutoCorrect", False
Application.SetOption "Log Name AutoCorrect Changes", False
'Application.SetOption "Built-In Toolbars Available", False
'Application.SetOption "Can Customize Toolbars", False

For a complete list of options check out Microsofts Site at:


(or search for "Application.SetOption" in Google...)

Regards
waldemar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top