I have found the tutorial Using Win32::OLE and Excel - Tips and Tricks
by cacharbe on Mar 22, 2002 at 04:56 UTC extremely useful.
However I could not find in this or elsewhere how to format an individual cell or group of cells.
I want to display times as min:sec. When I do this I find I get, for example, 22:00:00
I guess that the : is being used by Excel in the normal way for a numeric cell.
I can see two solutions namely
1. making those cells simply text cells;
2. making the cell have one of the ‘standard’ time formats where the : separates the parts or the time.
How are cell formats set in the way?
I am using
use Win32::OLE;
use Win32::OLE::Const 'Microsoft Excel';
use Win32::OLE qw(in with);
on a Win XP PC to manipulate Excel spreadsheets.