• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Populate a userform textbox with filename

Belleke

Well-Known Member
Hello dear helpers,
I want to populate a textbox with filename
Something like this
Code:
Dim sFileName As String
sFileName = Application.GetOpenFilename("MS Excel (*.xlsx), *.xls")
TBfilename.Text = sFileName
but instead of an excel file it should be a pdf file
please advice
 

Hi !

Just replace Excel parameter by the one for pdf like in Windows Explorer.

The question is : what's the purpose as Excel can't open a pdf file ?
 
Back
Top