Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hey all,
in VBA how do i check for #N/A? i keep getting a runtime error when code tries to read this record that has this value. thanks, rodchar |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use Application.WorksheetFunction.IsNA to search for only #N/A
errors or use VBA's IsError to search for any errors at all. rodchar wrote: Hey all, in VBA how do i check for #N/A? i keep getting a runtime error when code tries to read this record that has this value. thanks, rodchar |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or you could look at the .text property:
if mycell.text = "#N/A" then rodchar wrote: Hey all, in VBA how do i check for #N/A? i keep getting a runtime error when code tries to read this record that has this value. thanks, rodchar -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good point Dave.
Dave Peterson wrote: Or you could look at the .text property: if mycell.text = "#N/A" then rodchar wrote: Hey all, in VBA how do i check for #N/A? i keep getting a runtime error when code tries to read this record that has this value. thanks, rodchar -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
make a check form, and then have info go to a check register | Excel Worksheet Functions | |||
Copy and move check box (check boxes) with new cell link? | Excel Worksheet Functions | |||
Increase size of a Forms Check Box (click on to enter check mark) | Excel Discussion (Misc queries) | |||
Check if Conditional Format is True or False / Check cell Color | Excel Worksheet Functions | |||
Enable check box in protected sheet + group check boxes | Excel Discussion (Misc queries) |