Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Explorer Window.

Thanks for taking the time to read my question.

I would like to have a button in my workbook that when clicked opens up an
explorer window and allows the user to select a folder. When the folder is
selected, it would paste the path into a cell on one of the worksheets. I
have some code like this that works in Access, but I can't get it to work in
Excel, and can't find any code for Excel.

Any suggestions?

Thanks,

Brad
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Explorer Window.

Have you tried:
FName = Application.GetOpenFilename("Excel Files (*.xls), *.xls")

"Brad" wrote:

Thanks for taking the time to read my question.

I would like to have a button in my workbook that when clicked opens up an
explorer window and allows the user to select a folder. When the folder is
selected, it would paste the path into a cell on one of the worksheets. I
have some code like this that works in Access, but I can't get it to work in
Excel, and can't find any code for Excel.

Any suggestions?

Thanks,

Brad

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Explorer Window.

Hi Martin.

Thanks for the reply. I'm not sure that will work. That will force the
user to select a file, not a folder. Making the user select a file may be
confusing.

Very good idea. I'm going to keep this one, as I may need it later.

Thanks,

Brad

"Martin" wrote:

Have you tried:
FName = Application.GetOpenFilename("Excel Files (*.xls), *.xls")

"Brad" wrote:

Thanks for taking the time to read my question.

I would like to have a button in my workbook that when clicked opens up an
explorer window and allows the user to select a folder. When the folder is
selected, it would paste the path into a cell on one of the worksheets. I
have some code like this that works in Access, but I can't get it to work in
Excel, and can't find any code for Excel.

Any suggestions?

Thanks,

Brad

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Explorer Window.

Take a look he

http://www.j-walk.com/ss/excel/tips/tip29.htm

--
Regards,
Tom Ogilvy


"Brad" wrote:

Hi Martin.

Thanks for the reply. I'm not sure that will work. That will force the
user to select a file, not a folder. Making the user select a file may be
confusing.

Very good idea. I'm going to keep this one, as I may need it later.

Thanks,

Brad

"Martin" wrote:

Have you tried:
FName = Application.GetOpenFilename("Excel Files (*.xls), *.xls")

"Brad" wrote:

Thanks for taking the time to read my question.

I would like to have a button in my workbook that when clicked opens up an
explorer window and allows the user to select a folder. When the folder is
selected, it would paste the path into a cell on one of the worksheets. I
have some code like this that works in Access, but I can't get it to work in
Excel, and can't find any code for Excel.

Any suggestions?

Thanks,

Brad

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 846
Default Explorer Window.

Absolutely Perfect!

Thanks Tom.

Brad

"Tom Ogilvy" wrote:

Take a look he

http://www.j-walk.com/ss/excel/tips/tip29.htm

--
Regards,
Tom Ogilvy


"Brad" wrote:

Hi Martin.

Thanks for the reply. I'm not sure that will work. That will force the
user to select a file, not a folder. Making the user select a file may be
confusing.

Very good idea. I'm going to keep this one, as I may need it later.

Thanks,

Brad

"Martin" wrote:

Have you tried:
FName = Application.GetOpenFilename("Excel Files (*.xls), *.xls")

"Brad" wrote:

Thanks for taking the time to read my question.

I would like to have a button in my workbook that when clicked opens up an
explorer window and allows the user to select a folder. When the folder is
selected, it would paste the path into a cell on one of the worksheets. I
have some code like this that works in Access, but I can't get it to work in
Excel, and can't find any code for Excel.

Any suggestions?

Thanks,

Brad

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
Help, mouse click opens explorer window Bill Excel Discussion (Misc queries) 0 February 12th 09 02:12 AM
Docking Project Explorer, Properties window and Code window in VBE jayray Setting up and Configuration of Excel 2 March 27th 07 04:42 PM
How to activate (in the Project Explorer window) using VBA EagleOne Excel Discussion (Misc queries) 0 December 15th 06 02:26 AM
How do solve window explorer error c\Doc~1\admin~1\local~1\temp\wer8c2f.dr0 Excel Programming 1 December 22nd 04 05:41 PM
Close explorer window from excel VBA Itzik[_2_] Excel Programming 0 October 1st 03 02:58 PM


All times are GMT +1. The time now is 09:19 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"