ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How can I bring up the brose pop-up screen with VBA? (https://www.excelbanter.com/excel-programming/382001-how-can-i-bring-up-brose-pop-up-screen-vba.html)

Richard

How can I bring up the brose pop-up screen with VBA?
 
Hello,

I want to use the BVA code to bring up the brose pop-up screen (this the
same screen that when we click on "Open" file to brose the file to open).

After user brose and select the file, I want to capture that file name.

Can anyone help me with this?

Thanks

Jim Thomlinson

How can I bring up the brose pop-up screen with VBA?
 
Ty this

Dim str As String

str = Application.GetOpenFilename

This does not open the file but rather just retuns the name and path of the
selected file...
--
HTH...

Jim Thomlinson


"Richard" wrote:

Hello,

I want to use the BVA code to bring up the brose pop-up screen (this the
same screen that when we click on "Open" file to brose the file to open).

After user brose and select the file, I want to capture that file name.

Can anyone help me with this?

Thanks


Tom Ogilvy

How can I bring up the brose pop-up screen with VBA?
 


fname = Application.GetOpenFileName()
if fName < False tthen
msgbox "You chose " & fname
End if

See Excel VBA help of GetOpenFilename for additional arguments.

Regards,
Tom Ogilvy



"Richard" wrote:

Hello,

I want to use the BVA code to bring up the brose pop-up screen (this the
same screen that when we click on "Open" file to brose the file to open).

After user brose and select the file, I want to capture that file name.

Can anyone help me with this?

Thanks


Richard

How can I bring up the brose pop-up screen with VBA?
 
Thank you.

"Tom Ogilvy" wrote:



fname = Application.GetOpenFileName()
if fName < False tthen
msgbox "You chose " & fname
End if

See Excel VBA help of GetOpenFilename for additional arguments.

Regards,
Tom Ogilvy



"Richard" wrote:

Hello,

I want to use the BVA code to bring up the brose pop-up screen (this the
same screen that when we click on "Open" file to brose the file to open).

After user brose and select the file, I want to capture that file name.

Can anyone help me with this?

Thanks


Richard

How can I bring up the brose pop-up screen with VBA?
 
Thank you Jim

"Jim Thomlinson" wrote:

Ty this

Dim str As String

str = Application.GetOpenFilename

This does not open the file but rather just retuns the name and path of the
selected file...
--
HTH...

Jim Thomlinson


"Richard" wrote:

Hello,

I want to use the BVA code to bring up the brose pop-up screen (this the
same screen that when we click on "Open" file to brose the file to open).

After user brose and select the file, I want to capture that file name.

Can anyone help me with this?

Thanks



All times are GMT +1. The time now is 10:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com