几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】common dialog (http://www.dimcax.com/hust/showthread.php?t=5180)

yang686526 2009-04-13 09:47 AM

【转帖】common dialog
 
common dialog
hi all,
just wondering if someone can help me. i want to create a common dialog where i can browse for particular file formats. i am adding some additional flexibility to a macro so i can browse to a folder and select a file of a specific type (ini and mdb)once the file is selected the filepath of the selected file will be shown in a textbox.
i will be upgrading this macro over the next few weeks to vb.net but for the moment i need to get it working in vba.
how can i best do this?
thanks,
declan.
declan,
right mouse on the grey area "controls" tab of your vba "toolbox" dialog box and "additional controls". select "microsoft common dialog control" from the list of controls.
wayne matus
texas engineering systems


所有的时间均为北京时间。 现在的时间是 02:58 AM.