W
wsalden
I'm a new to writing Excel macros and have hit a bit of a wall.
I'm using Excel to pre-process data for an old Fortran Application. I
requires a .dat file containing a preamble and then data in a 6F10.
format.
The Excel data I want to write to the file is formatted as Number wit
3 decimals (+ or -). I have a macro that creates the file and preamble
I can read all the data, but I'm having trouble getting the 6 column
of F10.3 to format properly. The blank spaces are 'space' (Chr32). Th
negative sign is left of the most significant figure, not to the lef
of the field.
An example of the desired record, partial first two rows is:
12.345 -123.456 0.023 (3 more)...
100.000 -0.123 -12.120 (3 more)...
(it looks better with non-proportional type)
I've been try to manually format as text strings, but I think ther
must be a better way.
I'd appreciate any help or comments.
Thanks
Walte
I'm using Excel to pre-process data for an old Fortran Application. I
requires a .dat file containing a preamble and then data in a 6F10.
format.
The Excel data I want to write to the file is formatted as Number wit
3 decimals (+ or -). I have a macro that creates the file and preamble
I can read all the data, but I'm having trouble getting the 6 column
of F10.3 to format properly. The blank spaces are 'space' (Chr32). Th
negative sign is left of the most significant figure, not to the lef
of the field.
An example of the desired record, partial first two rows is:
12.345 -123.456 0.023 (3 more)...
100.000 -0.123 -12.120 (3 more)...
(it looks better with non-proportional type)
I've been try to manually format as text strings, but I think ther
must be a better way.
I'd appreciate any help or comments.
Thanks
Walte