Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help, mouse click opens explorer window | Excel Discussion (Misc queries) | |||
Docking Project Explorer, Properties window and Code window in VBE | Setting up and Configuration of Excel | |||
How to activate (in the Project Explorer window) using VBA | Excel Discussion (Misc queries) | |||
How do solve window explorer error | Excel Programming | |||
Close explorer window from excel VBA | Excel Programming |