ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Determine active file size (https://www.excelbanter.com/excel-programming/280671-determine-active-file-size.html)

pk

Determine active file size
 
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.



Chip Pearson

Determine active file size
 
Try something like

Debug.Print FileLen(ActiveWorkbook.FullName)



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"pk" wrote in message
...
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.






All times are GMT +1. The time now is 10:12 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com