What is the property and syntax to format a cell as text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

With ActiveCell
.Offset(, 3).NumberFormat = "Text"
this fails - runtime error 1004, unable to set NumberFormat

.Offset(, 3).NumberFormat = "General"
works OK

What is the property/syntax to format a cell as text?
 
Eggle, try, .Offset(, 3).NumberFormat = "@"
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003
 
Paul gave you the answer, but these are the kinds of things that you can find
out quickly by recording a macro when you do it.

It's another thing that you don't have to remember, since excel can tell you in
just a minute or two.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top