Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Using Excel 2002
I am using the FileDialog sub provided in the help to open a file. I want to call that from another sub and return the selected filename. I change FileDialog from a sub to a function but I can't get it to return the name of the selected file. Here is what I want to do: MySub() MyPik = FileDialog("") If MyPik = "" then exit sub end if If MyPik < xxx then exit sub else openfile endif I can't get the FileDialog function to return the file name Glen |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have a look at GetOpenFilename Method in help.
-- Damon Longworth Don't miss out on the 2005 Excel User Conference Sept 16th and 17th Stockyards Hotel - Ft. Worth, Texas www.ExcelUserConference.com "Glen Mettler" wrote in message ... Using Excel 2002 I am using the FileDialog sub provided in the help to open a file. I want to call that from another sub and return the selected filename. I change FileDialog from a sub to a function but I can't get it to return the name of the selected file. Here is what I want to do: MySub() MyPik = FileDialog("") If MyPik = "" then exit sub end if If MyPik < xxx then exit sub else openfile endif I can't get the FileDialog function to return the file name Glen |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
user defined function | Excel Worksheet Functions | |||
vlookup, add parameter, on error return user defined value | Excel Worksheet Functions | |||
User-defined data type; Error: Only User-defined types... | Excel Programming | |||
Array of 100X250 as return of a user defined function? | Excel Programming | |||
User-Defined Function pre-empting Built-in Function? How to undo???? | Excel Programming |