I have this code, that works fine, BUT the range(“E5:E1000”) and Range("T5:T1000") are set to fixed ranges [5 to 1000].
I’m trying to update this program so those ranges reference a variable (RowData) that is
My last attempt, that resulted in an error, was
Any Help or suggestions
VBA Code:
Dim R As Long
R = WorksheetFunction.Index(ShGE03.Range("E5:E1000"), WorksheetFunction.Match(ShGE03.Range("A5"), ShGE03.Range("T5:T1000"), 0))
I’m trying to update this program so those ranges reference a variable (RowData) that is
VBA Code:
Dim ws As Worksheet
Set ws = ShGE03
Dim RowDataStart As Long
RowDataStart = 5
Dim RowDataEnd As Long
RowDataEnd = Cells(Rows.count, 5).End(xlUp).Row
Dim RowData As Long
For RowData = RowDataStart To RowDataEnd
My last attempt, that resulted in an error, was
VBA Code:
R = WorksheetFunction.Index(ws.Range(ws.Cells(RowData, 5)), WorksheetFunction.Match(ws.Range(ws.Cells(1, 5)), ws.Range(ws.Cells(RowData, 20), 0)))
Any Help or suggestions