Determine active file size

P

pk

Please help!

I am using VBA in Excel XP with Windows 2000.

Could someone please provide me with the code required to
determine the size of the currently open and active Excel
file in bytes?

Thanks much in advance for your assist.
 
C

Chip Pearson

Try something like

Debug.Print FileLen(ActiveWorkbook.FullName)



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com (e-mail address removed)
 

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

Top