Data validation in Excel 95

dansve

New Member
Joined
Apr 8, 2002
Messages
2
I need to run data validation in a file saved as excel95. Is there anyone that knows how to construct a macro for this?

Show me how to collect a value when it´s being entered in a cell and how I can check if it´s a number or not. The rest i think I can handle... ;)

Greetings from Sweden!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I found this example but I can´t get it to work in my file. Does anyone have a clue?

------------------------------------------
The following sample macros restrict the data type in column C of sheet 1 to numbers.


Sub Auto_Open()
Sheets("Sheet1").OnEntry = "numbers"
End Sub

Sub numbers()
If ActiveCell.Column = 3 And Not IsNumeric(ActiveCell.Value) Then
MsgBox "Enter a number."
ActiveCell.Value = "" ' Clears contents of active cell.
End If
End Sub


http://support.microsoft.com/default.aspx?scid=kb;en-us;Q141181
This message was edited by dansve on 2002-04-10 03:58
This message was edited by dansve on 2002-04-10 04:34
 
Upvote 0

Forum statistics

Threads
1,214,431
Messages
6,119,458
Members
448,899
Latest member
maplemeadows

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