Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting data types for excel cells in vba

Status
Not open for further replies.

kaus

Programmer
Apr 16, 2002
2
US
Trying to set cell data type to text or general in vba -- using:
ObjExcel.ActiveSheet.Columns("C").NumberFormat = "General"

but still makes a number defined column of cells

is there a another way

thanks

Pete
 
Pete,

I don't quite follow what your problem is. What do you mean when you say the column is number defined?

Regards,
M. Smith
 
General formats just means that the cell will pick up whatever excel thinks the entry is - text for text, number for number etc
use Numberformat = "@"
for text
HTH
Geoff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top