By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,654 Members | 1,816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,654 IT Pros & Developers. It's quick & easy.

can you make a button that will open a file folder?

P: 56
I want to make a button that will open a specific file folder that contains some crystal reports. I don't want to pick a report ...just want to "lead the user to the folder" with just a click...

can this be done?
Dec 15 '06 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 15k+
P: 31,487
Try something like this :
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdExplorer_Click()
  2.     Dim strCmd As String
  4.     strCmd = "explorer.exe C:\BellSvr02"
  5.     Call Shell(PathName:=strCmd, WindowStyle:=vbNormalFocus)
  6. End Sub
You need to change the folder to the one you require obviously.
Dec 15 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.