Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:11:21+00:00 2026-06-03T01:11:21+00:00

Is there a way to open a Windows Explorer window from a vba form,

  • 0

Is there a way to open a Windows Explorer window from a vba form, navigate to a specific file and select it so that the file name is placed in a text box?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:11:23+00:00Added an answer on June 3, 2026 at 1:11 am

    Check out this snippet:

    Private Sub openDialog()
        Dim fd As Office.FileDialog
    
        Set fd = Application.FileDialog(msoFileDialogFilePicker)
    
       With fd
    
          .AllowMultiSelect = False
    
          ' Set the title of the dialog box.
          .Title = "Please select the file."
    
          ' Clear out the current filters, and add our own.
          .Filters.Clear
          .Filters.Add "Excel 2003", "*.xls"
          .Filters.Add "All Files", "*.*"
    
          ' Show the dialog box. If the .Show method returns True, the
          ' user picked at least one file. If the .Show method returns
          ' False, the user clicked Cancel.
          If .Show = True Then
            txtFileName = .SelectedItems(1) 'replace txtFileName with your textbox
    
          End If
       End With
    End Sub
    

    I think this is what you are asking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to open My Computer Properties from C# Windows Application? For
Hello StackOverflow community, Is there any way to open a folder in Windows Explorer
I know how to open and select file in windows explorer by using explorer.exe
Is there a way to automatically open up the Windows Performance Options dialog using
Is there any way to pop-up TIPS and pop-over any other windows open? I
Is there a way to disable the standard built-in function of the Windows-Key (open
Is there a way to open the Finder's Get Info window within my app
Is there any way to know for events when move a window with window.open?.
the window.open() object has some funky parameter list... is there a way to do
When searching a file in Windows Explorer and right-click a file from the search

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.