AkaTrouble
Well-known Member
- Joined
- Dec 17, 2014
- Messages
- 1,544
hi
i have a line in my VBA that currently converts the default bit file size to MB
has anyone a way to do same thing but using KB, MB, GB, options
so if small file it shows in KB, medium medium file in MB and large file in GB
i thought about CF but as the entire sheet is created from the VBA routine I would like to do it as part of the loop
thanks for reading
i have a line in my VBA that currently converts the default bit file size to MB
Code:
Cells(NextRow, "D").Value = Format((objFile.Size / 1024 / 1024), "000") & " MB"
has anyone a way to do same thing but using KB, MB, GB, options
so if small file it shows in KB, medium medium file in MB and large file in GB
i thought about CF but as the entire sheet is created from the VBA routine I would like to do it as part of the loop
thanks for reading