Hello,
I have a module that pulls the metadata for certain fields from files in a folder and displayed into Excel.
I am having some difficulty understanding how to 'standardize' the file size of all files listed when Excel points to a directory.
This module is being used in conjunction with others in a spreadsheet to screen image files in a folder to determine if they meet the criteria to be usable.
I am having difficulty comparing the sizes of these files against the criteria that is used because they are being displayed in byte, kilobytes, and megabytes.
For clarification, these are being returned by the values shown below using objFolder.GetDetailsOf(strFileName, i) while one of these loops returns the file size.
I am using a separate module for comparing the file sizes to what I need them to be, so the only I need this to do is display all loaded files in a kb format. Is there a way to convert any values of this column in bytes or megabytes INTO kilobytes after the files have been loaded?
I have a module that pulls the metadata for certain fields from files in a folder and displayed into Excel.
I am having some difficulty understanding how to 'standardize' the file size of all files listed when Excel points to a directory.
This module is being used in conjunction with others in a spreadsheet to screen image files in a folder to determine if they meet the criteria to be usable.
I am having difficulty comparing the sizes of these files against the criteria that is used because they are being displayed in byte, kilobytes, and megabytes.
For clarification, these are being returned by the values shown below using objFolder.GetDetailsOf(strFileName, i) while one of these loops returns the file size.
Code:
[TABLE]
<tbody>[TR]
[TD="class: xl63"][B]Size[/B][/TD]
[/TR]
[TR]
[TD]53 bytes[/TD]
[/TR]
[TR]
[TD]846 KB[/TD]
[/TR]
[TR]
[TD]345 KB[/TD]
[/TR]
[TR]
[TD]261 KB[/TD]
[/TR]
[TR]
[TD]1.52 MB[/TD]
[/TR]
[TR]
[TD]294 KB[/TD]
[/TR]
[TR]
[TD]1.63 MB[/TD]
[/TR]
[TR]
[TD]319 KB[/TD]
[/TR]
[TR]
[TD]222 KB[/TD]
[/TR]
[TR]
[TD]300 KB[/TD]
[/TR]
</tbody>[/TABLE]
I am using a separate module for comparing the file sizes to what I need them to be, so the only I need this to do is display all loaded files in a kb format. Is there a way to convert any values of this column in bytes or megabytes INTO kilobytes after the files have been loaded?