views:

42

answers:

1

I am generating an excel file using php.

The file gets created how ever strings with leading zeros example 0234 get converted to 234.

A: 

you want to set the number format to text

Range("A1").Select
Selection.NumberFormat = "@"

"@"

is the value for Text Format.

That should display leading 0's.

I hope that helps ;)

kLeos
thanx a million friend
mike