×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Browse button in VB form

Browse button in VB form

Browse button in VB form

(OP)
Hi all,

Does any one knows how to create a Browse button in VB form.
I want a browse button in my VB form. In the macro I want to select a folder by using the browse button as we do in windows explorer.

Vinay

RE: Browse button in VB form

(OP)
Thanks.
Do I need to get VB6 to do this?

RE: Browse button in VB form

It works in VBA.  The "Declare" statements can not be in a form, though.  They need to reside in a code module.

RE: Browse button in VB form

(OP)
Thank you.
I will try.

RE: Browse button in VB form

(OP)
I tried to implement browseforfolder example with solidworks.
Its giving an error of a dll not found.

This is the part of code where its is giving error

Private Declare Function GetCurrentVbaProject _
 Lib "vba332.dll" Alias "EbGetExecutingProj" _
 (hProject As Long) As Long
Private Declare Function GetFuncID _
 Lib "vba332.dll" Alias "TipGetFunctionId" _
 (ByVal hProject As Long, ByVal strFunctionName As String, _
 ByRef strFunctionId As String) As Long
Private Declare Function GetAddr _
 Lib "vba332.dll" Alias "TipGetLpfnOfFunctionId" _
 (ByVal hProject As Long, ByVal strFunctionId As String, _
 ByRef lpfn As Long) As Long

Which dll name I have to specify for solidworks VBA to work?


Vinay



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources