Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default Code to Create Input Box To Select a File

I am looking to crate an input box that will allow the user to select a file.
This will be like the browes option. The file selected will not need to be
opened, just have the full path entered in the cell. This will be used to
formualte a VLOOKUP form the selected closed file.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Code to Create Input Box To Select a File

You could use code similar to this...

Dim FileName As String
FileName = Application.GetOpenFilename
Range("A1").Value = FileName

but you should look up the GetOpenFilename method in the help files as there
are some optional arguments available that will let you customize things a
little bit.

Rick


"Jeremy" <jeremiah.a.reynolds @ gmail.com wrote in message
...
I am looking to crate an input box that will allow the user to select a
file.
This will be like the browes option. The file selected will not need to
be
opened, just have the full path entered in the cell. This will be used to
formualte a VLOOKUP form the selected closed file.


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
Code to create dbase file from text file? Hilton Excel Discussion (Misc queries) 0 October 9th 08 10:37 AM
Code for Select a file and save it in a different location Oggy Excel Programming 2 April 22nd 07 03:58 PM
Pause code, wait for input, no input received, carry on with the code [email protected] Excel Programming 1 September 29th 05 12:19 PM
Copy cells into another workbook with an input box to select the file scottdepauw Excel Programming 0 November 19th 04 07:25 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


All times are GMT +1. The time now is 06:20 AM.

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"