Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim fName as String
Chdrive "C" Chdir "C:\Myfolder" fname = Application.GetOpenFileName() If ucase(fname) < "FALSE" then Workbooks.Open fname End if See excel vba help on GetOpenFileName for information on arguments you may use. -- Regards, Tom Ogilvy Steve wrote in message ... I have a macro that reads in a file. The file's name changes every day when the date is appended. How can I change my macro so that instead of always calling MyFile.xls it prompts the user to type in the filename? I can't make it call in MyFile_with_today's_date.xls because sometimes I have to run the macro on old files. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding date to filename? | Excel Discussion (Misc queries) | |||
Adding date for filename | Excel Discussion (Misc queries) | |||
Cell("filename") doesn't update to new filename when do save as. | Excel Worksheet Functions | |||
set filename to <filename-date on open | Excel Worksheet Functions | |||
"Why did we get here????" popup | Excel Discussion (Misc queries) |