Insert only numbers into a cell with data

Gradus

New Member
Joined
Oct 15, 2019
Messages
2
Hi all,

I'm having a real issue in regards to being able to insert data into a cell which has data validation on it.

Basically I have have made a simple data validation rule. Only numbers between 0000000000-99999999999 can be written into the cell (or in column A). I have used Excel function – ‘data validation’. And it works fine until I insert a value from another source.
The datavalidation does not work, and I can easterly insert any letters or other sings... And this is wrong. I would like to keep the datavidation and would not allowed to insert anything except the numbers from 000000000 to 9999999999.
I know I can change it by VBA, but I am very new to VBA and I can not fugue it out ☹

Any help would be appreciated!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Re: Insert only numbers into a cell with data - help

I know that it possible to use this:
copy the data
rightclick
select "pastespecial"
check "values"

But tis is not the solution to my qiestion, as Excel is used by piople why is not normally knowing Excewl and only pastion the values into the sheet...
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,047
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top