I need help with Excel scripting.
I'm building a spreadsheet that has a column that has numerical data but it needs to be shown as text. i.e. the value "0322" needs to be seen in the cell as 0322, not the number 322. I need the leading "0".
This can be done if I can figure out how to tell Excel that the cell contains text, not a number.
I tried using a formula:
set value of cell ("B" & RowNum) to "=text(" & (item 2 of RowItems) & ",\"0000\")"
but the people wanting the spreadsheet said I can't use a formula in the cell, it has to be the text of the numerical data only.
So, does anyone know how to tell Excel, using Applescript, that the format of a cell is text?
TIA,
Jim Brandt
|