Now I have a new error! Why can't I set vbr in a while loop?
Dim k, j, m, n As Integer
Dim reticle As String
Dim numberOfRows As Integer
Dim Wg As Double
Dim i As Integer
Dim idss As Double
Dim vbr As Range
Dim label As String
label = "Id (A/um)"
i = 1 'Vbr column
k = 6 'id(A/um) column
j = 2 'reticle number
n = 2 'id column
Set vbr = Range(Cells(123, i), Cells(rows.count, i).End(xlUp))
numberOfRows = vbr.rows.count + 123
reticle = Cells(1, i).Value
Wg = 1000 * Sheets("Hard Breakdown Summary").Cells(1, 2).Value
Cells(122, k) = "Id (A/um)"
While reticle <> ""
For m = 123 To numberOfRows
idss = Cells(m, n).Value / Wg
Cells(m, k) = idss
Next m
i = i + 8
k = k + 8
j = j + 8
n = n + 8
Set vbr = Range(Cells(123, i), Cells(rows.count, i).End(xlUp))
numberOfRows = vbr.rows.count
reticle = Cells(1, i).Value
Cells(122, k) = label
Wend
Bookmarks