Re: Number DIMs automatically
That code just isn't right, mind you I'm not sure what it's meant to do.
If the first part is meant to be naming ranges it should be like this.
Code
For Q = 1 To 4
Worksheets("Sheet1").Range("B" & j).Name ="LIMIT " & Q
Worksheets("Sheet1").Range("C" & j).Name = "MTOPC" & Q
Worksheets("Sheet1").Range("E" & j).Name = "CYCLEC" & Q
Note I've assumed Worksheets(Sheet1) is meant to refer to Sheet1, otherwise the code would fail unless you've declared a variable called Sheet1 somewhere else and given
it a value that is the name of an existing worksheet.
Not sure what's happening here, are ASSIGN1, ADDM1, CLOSING1, ASSIGN2, ADDM2, CLOSING2 etc existing named ranges
Code
Range("ASSIGN" & Q) = Range("CHECKSUM")
Range("ADDM" & Q) = Range("ADDM" & Q) + Range("ASSIGN" & Q)
Range("CLOSING" & Q) = Range("CLOSING" & Q) + Range("ASSIGN" & Q)
Also, why are you naming individual cells?
Why not name entire columns or rows of data?
Or even name the entire range.