Hi,
We have an Excel macro. It works for all other versions but fails with Excel 2013 with following error -
Application defined or Object defined error.
The error occurs at the following line -
The rRange is 8:10, 10:20, 12:10, 13:20![]()
Please Login or Register to view this content.
Prior to setting the validation it's setting the rRange with following code -
Dim rRange As Range
iLastCol = Range("I6").Value
Set rRange = Range(Cells(iRow, 10).Address + ":" + _
Cells(iRow + 2, iLastCol).Address + "," + _
Cells(iRow + 4, 10).Address + ":" + _
Cells(iRow + 5, iLastCol).Address)
This is a valid range. Also, once error is received I debugged to press F8 a few times. I then checked the validation rule in the actual spreadsheet this macro created and the rule is present in all above cells. Why this error in Excel 2013 only?
Bookmarks