mphillip85
asked on
vb .net 2003 open excel app and format a column to a text or date type
vb .net 2003. When calling an excel application and writing data to the workseet. How do you format a column to text or date or general?
ASKER
I need more of the text format because I have an account number that is preceeded with zeros, so not to let excel strip the zeros I need to format the column as text.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
' To number
YourWorkCell.NumberFormat = "@"
' To Date
YourWorkCell.NumberFormat = "m/d/yyyy"