Question Pick file and folders using browse button?

ashwilkie01

New member
Joined
Nov 29, 2014
Messages
2
Programming Experience
Beginner
Hi All,

Trying to come up with a method to have a browse button that displays the msoFileDialogFilePicker dialog box so the user can pick a file but also be able to choose a folder if they wish as well... Is there some kind of way of having the filepicker and folderpicker dialog boxes combined such that the user can choose either file or folder from a single dialog box??

The whole idea is for a hyperlink to be created in an office document that is linked to either a specific file or a directory.

Thanks for your help,

Ash
 
if you want to copy hyperlink to linked to a file. just use this. after you openfiledialog

OpenFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"
OpenFileDialog1.ShowDialog()
Label4.Text = OpenFileDialog1.InitialDirectory
 
Back
Top