Thank you, colin_l. I've tested that and it doesn't work either.
I think it's equivalent to the code I posted.
Thank you, colin_l. I've tested that and it doesn't work either.
I think it's equivalent to the code I posted.
Hi dlh,
I apologise for not reading your question closely enough.
Revised answer:
Regards,![]()
myCell.Errors(xlOmittedCells).Ignore = True
Colin
Last edited by Colin Legg; 07-18-2008 at 01:56 PM.
colin_l, I really appreciate your help.
Sorry, that's not it either.
Enclosed is a sample workbook. Change the cell that contains "YEAR" to "2008" and the green triangle appears.
Strange.... I opened your workbook, changed the cell D2 to 2008 per your instruction and then the "green triangle" appeared in cell B2. Then I ran the code I supplied previously and the error disappeared as suggested....
I suppose this could feasibly be an Excel version discrepancy... I am using Excel XP.![]()
Sub foo() Dim rngCell As Range Set rngCell = Worksheets("Sheet1").Range("B2") rngCell.Errors(xlOmittedCells).Ignore = True End Sub
Colin
Last edited by Colin Legg; 07-18-2008 at 02:07 PM.
Aha. I see my mistake. Fixed. Thank you!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks