I've got two tables - dRow and dRowSetup. Each comprises 2 columns named Lower and Upper.
I'm trying to use the following construct:
For Rw = 1 To Range("dRowSetup").Rows.Count
If Range("dRowSetup[Lower]")(rw).Value = "" Then Exit For
MsgBox Range("dRowSetup[Lower]")(Rw)
Range("dRow[Lower]")(Rw) = Range("dRowSetup[Lower]")(Rw)
Range("dRow[Upper]")(Rw) = Range("dRowSetup[Upper]")(Rw)
.Range("AA1").Value = Rw
Next Rw
I keep getting: Method 'Range' of object '_Worksheet' failed
Range("dRowSetup").Rows.Count resolves correctly to 20, but things bomb out on the IF statement, or if removed, the MSGBOX.
any idea what I'm doing