Compare Size of 2 files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!
Can you tell me how to compare the file size of 2 files and if file "A" is
larger than file "B" then MsgBox "Check file". I've been at this for hours
and just can't get anything to work.

Thank You,
Terri
 
If the files are closed then:

lenA = FileLen("C:\MyFolder\WorkbooksA.xls")
lenB = FileLen("C:\Myfolder\WorkbooksB.xls")

If LenA > LenB then
msgbox "Check file"
end if
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top