![]() |
GetOpenFilename - Error
Hi all,
I have tried the code below, but it does not like the second line on the Filt. If i only use one it runs, but with the other i get a method failed message? Can somebody tell me what the problem could be please Filt = "Comma Seperated Files (*.csv), *.csv" & _ "Excel Files (*.xls),*.xls" Title = "Please select the supplier file to process" ChDrive "C" ChDir "C:\Recon\A_BackUpFiles\From_Supplier" FileName = Application.GetOpenFilename(FileFilter:=Filt, Title:=Title) Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
GetOpenFilename - Error
Have found the problem; it was a comma missing after the last CSV !!
Filt = "Comma Seperated Files (*.csv), *.csv," & _ "Excel Files (*.xls),*.xls" Les Stout *** Sent via Developersdex http://www.developersdex.com *** |
All times are GMT +1. The time now is 01:48 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com