Link to home
Start Free TrialLog in
Avatar of mphillip85
mphillip85Flag for United States of America

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?
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

You can do it this way

    ' To number
    YourWorkCell.NumberFormat = "@"
    ' To Date
    YourWorkCell.NumberFormat = "m/d/yyyy"
Avatar of mphillip85

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
ASKER CERTIFIED SOLUTION
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial