Number stored as text error message

  • Thread starter Thread starter prahz
  • Start date Start date
P

prahz

I have created a macro in vba to input a "string of numbers" into a
cell.
-Some of the numbers in the string have leading zeros so I have
formatted the cell type as "text."
-Excel gives me this green tick mark at the top right corner of the
cell showing a Number Stored as Text error.
-How do I suppress the green tick mark from not ever coming up?

Does anybody know how to do this?
 
tools/options and on the error checking tab uncheck number stored as text
 
Sorry, I should have been more clear...

Is there any vba code I could use in my macro to suppress that green
tick mark no matter who is using the file?
 
then use Charles's suggestion

--


Gary


prahz said:
Sorry, I should have been more clear...

Is there any vba code I could use in my macro to suppress that green
tick mark no matter who is using the file?
 
That would be me. For some dumb reason when I post from Microsoft's
newsgroups the post's don't always show up in Google groups. My
suggestion was this:
Here's a possibility:
Application.ErrorCheckingOptions.NumberAsText = False
--
Charles Chickering

"A good example is twice the value of good advice."


prahz said:
I have created a macro in vba to input a "string of numbers" into a
cell.
-Some of the numbers in the string have leading zeros so I have
formatted the cell type as "text."
-Excel gives me this green tick mark at the top right corner of the
cell showing a Number Stored as Text error.
-How do I suppress the green tick mark from not ever coming up?

Does anybody know how to do this?


Charles
 
Thank you that worked.

I put it in the Sub Auto_Open() Function of my workbook.
 
Thank you that worked.

I put it in Sub Auto_Open() and it turned it off on startup
 
This is Application code and will affect all workbooks.

Why don't you just go into Tools>Options>Error Checking and uncheck it there?




Thank you that worked.

I put it in the Sub Auto_Open() Function of my workbook.

Gord Dibben MS Excel MVP
 

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