ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   file folder macro's (https://www.excelbanter.com/excel-programming/336162-file-folder-macros.html)

tweacle[_6_]

file folder macro's
 

Can anyone help? Ive got files within a file folder. Im trying to
create a macro that will let me open the file folder and then I can
select a file within the folder to open by myself. At the moment I can
create a macro to open a particular file within the file folder. Can
anyone help?


--
tweacle
------------------------------------------------------------------------
tweacle's Profile: http://www.excelforum.com/member.php...o&userid=25829
View this thread: http://www.excelforum.com/showthread...hreadid=392197


Tom Ogilvy

file folder macro's
 
chdrive "C"
Chdir "C:\Myfolder"
fname = Application.GetOpenFileName()
msgbox "File to open is " & fName
--
Regards,
Tom Ogilvy

"tweacle" wrote in
message ...

Can anyone help? Ive got files within a file folder. Im trying to
create a macro that will let me open the file folder and then I can
select a file within the folder to open by myself. At the moment I can
create a macro to open a particular file within the file folder. Can
anyone help?


--
tweacle
------------------------------------------------------------------------
tweacle's Profile:

http://www.excelforum.com/member.php...o&userid=25829
View this thread: http://www.excelforum.com/showthread...hreadid=392197





All times are GMT +1. The time now is 01:29 AM.

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