formatting numbers as text in excel
问题 Building an excel spreadsheet is a classic asp application. The problem now is that one of the columns is being automatically formatted by excel as a number when it should really be text and so it is removing leading zeros which the boss wants to keep. I have done some web search and you should be able to pre-append an apostrophe to the string forcing excel to display it as text: If isNumeric(val) Then response.write "'" & val Else response.write val End If Great, but excel is now displaying