ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Error types (https://www.excelbanter.com/excel-programming/326188-error-types.html)

Darin Kramer

Error types
 
last one....

How do you say if cell a1 is error type #value, then put "x"?

Also how do you say if cell a1 is an error, put y?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Tom Ogilvy

Error types
 
if Range("A1").Text = "#VALUE!" then
' put x where?

if iserror(Range("A1").Value) then
' put y where?

--
Regards,
Tom Ogilvy

"Darin Kramer" wrote in message
...
last one....

How do you say if cell a1 is error type #value, then put "x"?

Also how do you say if cell a1 is an error, put y?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




Bob Phillips[_6_]

Error types
 
If Range("A1").Value = CVErr(xlErrValue) Then
Range("A1").Value = "x"
ElseIf Iserror(Range("A1").Value) Then
Range("A1").Value = "y"
End If


--

HTH

RP
(remove nothere from the email address if mailing direct)


"Darin Kramer" wrote in message
...
last one....

How do you say if cell a1 is error type #value, then put "x"?

Also how do you say if cell a1 is an error, put y?

Thanks

D

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





All times are GMT +1. The time now is 12:32 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com