Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
ISERROR for Multiple Workbooks
I may be trying to do the impossible. I want to use ISERROR to check
multiple open workbooks. If either workbook has information in specific ranges/cells, I want that data returned, otherwise a "" response. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
ISERROR for Multiple Workbooks
MyError = False
For Each Cell In A If IsError(Cell) = True Then MyError = True Exit For End If Next Cell If MyError = False Then For Each Cell In B If IsError(Cell) = True Then MyError = True Exit For End If Next Cell End If If MyError = True Then MsgBox ("Found an Error") End If "TenacityWins" wrote: I may be trying to do the impossible. I want to use ISERROR to check multiple open workbooks. If either workbook has information in specific ranges/cells, I want that data returned, otherwise a "" response. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
ISERROR for Multiple Workbooks
I lost two lines when posting my response
Set A = Workbooks("Book1.xls").Range("A1:D7") Set B = Workbooks("Book2.xls").Range("A1:D7") MyError = False For Each Cell In A If IsError(Cell) = True Then MyError = True Exit For End If Next Cell If MyError = False Then For Each Cell In B If IsError(Cell) = True Then MyError = True Exit For End If Next Cell End If If MyError = True Then MsgBox ("Found an Error") End If "TenacityWins" wrote: I may be trying to do the impossible. I want to use ISERROR to check multiple open workbooks. If either workbook has information in specific ranges/cells, I want that data returned, otherwise a "" response. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I move multiple tabs in multiple workbooks to a master? | Excel Worksheet Functions | |||
Updating Workbooks from multiple links Workbooks | Excel Worksheet Functions | |||
macro: copy multiple workbooks to multiple tabs in single book | Excel Programming | |||
Combine multiple workbooks into 1 workbook w/ multiple worksheets | Excel Discussion (Misc queries) | |||
adding certain cells in multiple worksheets in multiple workbooks | Excel Worksheet Functions |