
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've been tackling this problem for about 4 hours now and I'm running out of ideas. I've tried a lot of things and Googled aplenty, but certain things, like Common Dialog won't run on this computer. What I'm trying to do is simply open a file browser (preferably only for .ipj files) in Inventor VBA Editor. I will also attach a picture of Form1 to explain what it is I'm doing. It needs to access our K:\\ drive and U:\\ drive as well as the C:\\ drive.
Once the file is selected it is going to display in TextBox1 and the user will be able to prompt the next step of the process.
The closest I have (that works) is a folder browser, shown below.
Private Sub Browse_Click()
Dim pathSelected As String 'This needs to be edited to find files, not just folders...alternatively, add .ipj to end of selected path?
Dim ShellApp As Object
Set ShellApp = CreateObject("Shell.Application"). _
BrowseforFolder(0, "Choose Folder", 0, OpenAt)
pathSelected = ShellApp.self.Path
Me.TextBox1.Text = pathSelected
Set ShellApp = Nothing
End Sub
Any ideas are greatly appreciated and welcomed!!
Thanks,
Alyssa
Solved! Go to Solution.