#1   Report Post  
Posted to microsoft.public.excel.misc
SR SR is offline
external usenet poster
 
Posts: 18
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying all files in a folder to new folder michaelberrier Excel Discussion (Misc queries) 2 June 20th 06 05:35 AM
can excel links be somehow relative to folder structure? Paul134 Excel Discussion (Misc queries) 0 March 2nd 06 03:22 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
Macro syntax to open file in current explorer folder [email protected] Excel Discussion (Misc queries) 4 January 11th 06 12:07 PM
What is folder OLK7 and where can I find it? HELP! Excel Discussion (Misc queries) 1 April 1st 05 05:35 AM


All times are GMT +1. The time now is 05:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"