Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Filter The msoFileDialogOpen
Ive tried to filter this msoFileDialogOpen to only allow excel files to be
selected but cant get it to work. Any help ? Set FD = Application.FileDialog(msoFileDialogOpen) With Application.FileDialog(msoFileDialogOpen) .AllowMultiSelect = False .InitialFileName = "C:\" .Title = "(Open excel file)" If .Show = True Then .Execute Else Exit Sub End If End With |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Filter The msoFileDialogOpen
Hi Mike,
Try this. Dim FD Set FD = Application.FileDialog(msoFileDialogOpen) With Application.FileDialog(msoFileDialogOpen) .Filters.Clear .Filters.Add "Excel files", "*.*" 'or '.Filters.Add "All files", "*.xls" .AllowMultiSelect = False .InitialFileName = "C:\" .Title = "(Open excel file)" If .Show = True Then .Execute Else Exit Sub End If End With -- Regards, OssieMac "Mike" wrote: Ive tried to filter this msoFileDialogOpen to only allow excel files to be selected but cant get it to work. Any help ? Set FD = Application.FileDialog(msoFileDialogOpen) With Application.FileDialog(msoFileDialogOpen) .AllowMultiSelect = False .InitialFileName = "C:\" .Title = "(Open excel file)" If .Show = True Then .Execute Else Exit Sub End If End With |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Filter The msoFileDialogOpen
for the life of me I forgot the add
Thanks Ossie "OssieMac" wrote: Hi Mike, Try this. Dim FD Set FD = Application.FileDialog(msoFileDialogOpen) With Application.FileDialog(msoFileDialogOpen) .Filters.Clear .Filters.Add "Excel files", "*.*" 'or '.Filters.Add "All files", "*.xls" .AllowMultiSelect = False .InitialFileName = "C:\" .Title = "(Open excel file)" If .Show = True Then .Execute Else Exit Sub End If End With -- Regards, OssieMac "Mike" wrote: Ive tried to filter this msoFileDialogOpen to only allow excel files to be selected but cant get it to work. Any help ? Set FD = Application.FileDialog(msoFileDialogOpen) With Application.FileDialog(msoFileDialogOpen) .AllowMultiSelect = False .InitialFileName = "C:\" .Title = "(Open excel file)" If .Show = True Then .Execute Else Exit Sub End If End With |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Filter PivotTable dropdown items to match report filter | Excel Discussion (Misc queries) | |||
Application.FileDialog(msoFileDialogOpen) and error 75 | Excel Programming | |||
Application.FileDialog(msoFileDialogOpen) | Excel Programming | |||
FileDialog(msoFileDialogOpen) | Excel Programming | |||
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du | Excel Worksheet Functions |