Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I have used the following in Excel 2007 to allow a user to select a file: Dim fdObj As FileDialog Set fdObj = Application.FileDialog(msoFileDialogOpen) With fdObj .AllowMultiSelect = False .Title = gsAPP_NAME .Filters.Clear .Filters.Add "Consolidation Reports", ".xls" .InitialView = msoFileDialogViewDetails If .Show = -1 Then .Execute End If End With Set fdObj = Nothing Fairly standard I would have thought, but this breaks on the line with the .Filters.Add method, with error message "Invalid procedure call or argument". What am I missing here? Cheers Geoff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
FileDialog Filters.clear | Excel Programming | |||
Using Application.FileDialog(msoFileDialogFolderPicker) | Excel Discussion (Misc queries) | |||
Application.FileDialog(msoFileDialogOpen) | Excel Programming | |||
Application.Volatile not working as expected | Excel Discussion (Misc queries) | |||
Alternative to Application.FileDialog (please)? | Excel Programming |