ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   get folder syntax (https://www.excelbanter.com/excel-discussion-misc-queries/99078-get-folder-syntax.html)

SR

get folder syntax
 

Hi,

in my current macro I am using a cell to input the folder path information.
Can I ask the user to inut the path (similar to Application.GetFileOpen()). I
need the folder path from where the macro will read file one by one. Can
someone suggest please.

Thanks in advance
--
sr

peabrain25

get folder syntax
 
Can you use a message box?

dim FilePath as string

FilePath = msgbox("Please provide the file path", VbOKOnly, "File Path
Needed")

Then you have FilePath as whatever they type in.

Mark

"SR" wrote:


Hi,

in my current macro I am using a cell to input the folder path information.
Can I ask the user to inut the path (similar to Application.GetFileOpen()). I
need the folder path from where the macro will read file one by one. Can
someone suggest please.

Thanks in advance
--
sr



All times are GMT +1. The time now is 02:40 PM.

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