OpenFileDialog - VBA to VB

  • Thread starter Thread starter Stuart Coutts (gtx_viper)
  • Start date Start date
S

Stuart Coutts (gtx_viper)

Guest
I am currently converting my VBA macros for various software (Solidworks, Autocad, Word, Excel) into plugins, addins etc.

In alot of my macros I have code that prompts the user to pick a file (somtimes its only .txt or .dwg etc) or pick a folder.

Its simple code that just opens the dialog. But ive run into a problem... all the examples ive seen online for vba to vb conversion say ive got to create a form with a button and then have the user click the button then have the user choose the file.

Thats an extra step.

Is there anyway in VB to just load the OpenFileDialog (or another open file method) without having the user to click on an additional button in a form???

Continue reading...
 
Back
Top