A
Alan
In Excel 2002 SP-2
I want to use the following well-known code to allow the user to select multiple files and then do something with them
Dim fName As Varian
Dim f As Varian
fName = Application.GetOpenFilename("Files(*.*),*.*", 1, "Select files", , True
For Each f In fNam
'Do something with
Nex
When I run this, however, the dialog works properly, but I get a type mismatch error (13) on the For statement. In the variable watch window
VarType(fName) returns 8 (String
IsArray(fName) returns Fals
LBound(fName) returns <Type mismatch
fName returns the last filename selected, with a type of Variant/Strin
I want to use the following well-known code to allow the user to select multiple files and then do something with them
Dim fName As Varian
Dim f As Varian
fName = Application.GetOpenFilename("Files(*.*),*.*", 1, "Select files", , True
For Each f In fNam
'Do something with
Nex
When I run this, however, the dialog works properly, but I get a type mismatch error (13) on the For statement. In the variable watch window
VarType(fName) returns 8 (String
IsArray(fName) returns Fals
LBound(fName) returns <Type mismatch
fName returns the last filename selected, with a type of Variant/Strin