I have the following code:
The problem is that row is always changing, so I made a named range called "Subtotals" in the worksheet for that row so it is dynamic, but I don't know how to write the code so it will work. Here is what I have that doesn't work. I always need the column "GN" but the row will go up or down.
Thanks
CEG
Code:
With Worksheets("filtered")
.Range("I12") = Worksheets("part number").Range("GN22")
The problem is that row is always changing, so I made a named range called "Subtotals" in the worksheet for that row so it is dynamic, but I don't know how to write the code so it will work. Here is what I have that doesn't work. I always need the column "GN" but the row will go up or down.
Code:
With Worksheets("filtered")
.Range("I5") = Worksheets("part number").Cells("Subtotals", "GN")
CEG