Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If activecell is text I get a runtime error with the code below (o
course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End I -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dim iSpecific As Integer
if not( isnumber(activeCell)) or Activecell.Text = "" then goto NoSearch End if iSpecific = ActiveCell.Value -- Regards, Tom Ogilvy "Steff_DK " wrote in message ... If activecell is text I get a runtime error with the code below (of course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End If --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
try Dim iSpecific As Integer If Isnumeric(activecell.value) then iSpecific = ActiveCell.Value elseif ActiveCell.Value < "" Then GoTo Nosearch End If -----Original Message----- If activecell is text I get a runtime error with the code below (of course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End If --- Message posted from http://www.ExcelForum.com/ . |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Steff,
If Not IsNumeric(ActiveCell.Value) Then GoTo NoSearch End If -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "Steff_DK " wrote in message ... If activecell is text I get a runtime error with the code below (of course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End If --- Message posted from http://www.ExcelForum.com/ |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom
you probably meant IsNumeric instead of IsNumber :-) Besides that I'm still not sure what the OP really wants to check :-) -----Original Message----- Dim iSpecific As Integer if not( isnumber(activeCell)) or Activecell.Text = "" then goto NoSearch End if iSpecific = ActiveCell.Value -- Regards, Tom Ogilvy "Steff_DK " wrote in message ... If activecell is text I get a runtime error with the code below (of course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End If --- Message posted from http://www.ExcelForum.com/ . |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Still no luck:
Runtime error with IsNumber 'Sub or function not defined -- Message posted from http://www.ExcelForum.com |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveCell.ClearContents
? isnumeric(activecell) True -- Regards, Tom Ogilvy "Frank Kabel" wrote in message ... Hi try Dim iSpecific As Integer If Isnumeric(activecell.value) then iSpecific = ActiveCell.Value elseif ActiveCell.Value < "" Then GoTo Nosearch End If -----Original Message----- If activecell is text I get a runtime error with the code below (of course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End If --- Message posted from http://www.ExcelForum.com/ . |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Tom
good point :-) -- Regards Frank Kabel Frankfurt, Germany Tom Ogilvy wrote: ActiveCell.ClearContents ? isnumeric(activecell) True "Frank Kabel" wrote in message ... Hi try Dim iSpecific As Integer If Isnumeric(activecell.value) then iSpecific = ActiveCell.Value elseif ActiveCell.Value < "" Then GoTo Nosearch End If -----Original Message----- If activecell is text I get a runtime error with the code below (of course...). I'd like to goto Nosearch, if cell value is text. How can I write this into the below code? Dim iSpecific As Integer iSpecific = ActiveCell.Value If ActiveCell.Value = "" Then GoTo Nosearch End If --- Message posted from http://www.ExcelForum.com/ . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I add an integer to an existing integer? | Excel Worksheet Functions | |||
Help creating a formula that repeats text & increments an integer | Excel Discussion (Misc queries) | |||
Convert Text to Integer | Excel Discussion (Misc queries) | |||
Extracting an integer from text | Excel Discussion (Misc queries) | |||
Get next Integer value | Excel Programming |