green arrow for error

G

greg

Hello,
I am inserting numbers in a column. The numbers are formated like ####.
So:
0001
0002
....
0300
etc...

however once my code runs, Each of the cells has the green arrow errors.
It wants to convert to a number. So 0001 would go to 1.

Is there a way to make these arrows not appear when dropping in the text?
Is there a way after inserting the text to place an ignore error on the cell
through code?
etc...

thanks for any help
 
D

Dave Peterson

Click on Tools|Options|Error checking

Uncheck the errors you don't want flagged--including "Number stored as text"

You could record a macro when you do this manually and add it to your code if
you really wanted.
 
G

greg

OK,
Seems like the code would be
Application.ErrorCheckingOptions.NumberAsText = False

thanks
 
D

Dave Peterson

Remember that this is an application setting. If you share your macro with
others, they may not like the choice you made.
 

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

Top