Hoping someone can help with my first attempt at a multi select macro.
The single version runs in less than a second but using this code to multi select it now takes up to 5 sec for each. Figure it is something to do with how I am getting them from the array.
The single version runs in less than a second but using this code to multi select it now takes up to 5 sec for each. Figure it is something to do with how I am getting them from the array.
Code:
[FONT=Calibri][SIZE=3][COLOR=#000000]vaFiles = Application.GetOpenFilename("Excel Files(*.csv), *.csv", _[/COLOR][/SIZE][/FONT]
[FONT=Calibri][SIZE=3][COLOR=#000000] Title:="Select files", MultiSelect:=True)[/COLOR][/SIZE][/FONT]
[FONT=Calibri][SIZE=3][COLOR=#000000] IfIsArray(vaFiles) Then[/COLOR][/SIZE][/FONT]
[FONT=Calibri][SIZE=3][COLOR=#000000] For i =LBound(vaFiles) To UBound(vaFiles)[/COLOR][/SIZE][/FONT]
[FONT=Calibri][SIZE=3][COLOR=#000000] SetwbkToCopy = Workbooks.Open(Filename:=vaFiles(i))[/COLOR][/SIZE][/FONT]