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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,213,494
Messages
6,113,972
Members
448,537
Latest member
Et_Cetera

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