By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,504 Members | 2,606 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,504 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


NeoPa
Expert Mod 15k+
P: 31,186
Try something like this :
Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdExplorer_Click()
  2.     Dim strCmd As String
  3.  
  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.