View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
mikewild2000[_25_] mikewild2000[_25_] is offline
external usenet poster
 
Posts: 1
Default Trying to make cells numeric only

Eight celles on my worksheet need to be numeric only, and if a user
inputs text into any of the 8 cells then, the key commands (or other
method) do not work. (or accepted)

Here is what i have managed to piece together so far from the help
files.


Private Sub Worksheet_Change(ByVal Target As Range)
dim cellok as boolean
Dim vdata As Range, Cell As Range
Set vdata = Range("b5,d5,f5,h5,j5,b9,d9,f9,h9,j9")
If IsNumeric(vdata.Cell).Value Then
cellOk
Else

End If
End Sub


---
Message posted from http://www.ExcelForum.com/