Home > Forum Home > Developing Business Administration Solutions > Importing Data from PDF Files > File extension in upper case Share

File extension in upper case

Excel Help for File Extension In Upper Case in Developing Business Administration Solutions


Forum TopicLogin

File Extension In Upper Case

Rate this:
(3/5 from 1 vote)
Oops The error is due to the file extension in upper case. The file name is test4.PDF. It works if we save the files as test4.pdf or change the VBA code to lower case the file extension:
VBA Code:
'get collection of pdf files
While strFile <> ""   
If LCase(Right(strFile, 4)) = ".pdf" Then
        colFiles.Add strFile   
End If  
strFile = Dir
Wend 
 Excel Business Forums Administrator
 Posted by on
 
View Full Post

Find relevant Excel templates and add-ins for File extension in upper case in the