Hi All,
Just wondering if someone can help me. I want to create a commondialog where I can browse for particular file formats. I am addingsome additional flexibility to a macro so I can browse to a folderand select a file of a specific type (INI and MDB)Once the file isselected the filepath of the selected file will be shown in atextbox.
I will be upgrading this macro over the next few weeks to VB.NETbut for the moment I need to get it working in VBA.
How can I best do this?
Thanks,
Declan.
SolidworksApi macros
Just wondering if someone can help me. I want to create a commondialog where I can browse for particular file formats. I am addingsome additional flexibility to a macro so I can browse to a folderand select a file of a specific type (INI and MDB)Once the file isselected the filepath of the selected file will be shown in atextbox.
I will be upgrading this macro over the next few weeks to VB.NETbut for the moment I need to get it working in VBA.
How can I best do this?
Thanks,
Declan.
SolidworksApi macros

Right mouse on the grey area "Controls" tab of your VBA "Toolbox"dialog box and "Additional Controls". Select "Microsoft CommonDialog Control" from the list of controls.
I can not get the Common Dialog controls to work in VBA. I haveused the controls in VB6 but whenever I have tried to use them inSW VBA I get the message "The control could not be created becauseit is not properly licensed". Is there a way to license it?
Dan Miel
SW 2008
http://forum.solidworks.com/fo...tid=11&threadid=12101
Chris