I have the following code:
I want it to loop through the end in column A until the end and grab all the months in these ranges associated with Column A. From what Smitty has told me, and I have seen it before is there a way to concantenate all these ranges in one line of code instead of doing it this way?
I am trying to use Excel Jeanie, but I am at work right now, I will try to show the sheet later from my home computer.
If you ened further clarification, please let me know.
Kurt
Code:
Sub PivotGraph2()
With Worksheets("Sheet1")
Range("A2:B2").Copy Range("A16")
Range("D2").Copy Range("B16")
Range("F2").Copy Range("C16")
Range("H2").Copy Range("D16")
Range("J2").Copy Range("E16")
Range("L2").Copy Range("F16")
Range("N2").Copy Range("G16")
Range("P2").Copy Range("H16")
Range("R2").Copy Range("J16")
Range("T2").Copy Range("K16")
Range("V2").Copy Range("L16")
Range("X2").Copy Range("M16")
Range("A3:B3").Copy Range("A16")
Range("D3").Copy Range("B16")
Range("F3").Copy Range("C16")
Range("H3").Copy Range("D16")
Range("J3").Copy Range("E16")
Range("L3").Copy Range("F16")
Range("N3").Copy Range("G16")
Range("P3").Copy Range("H16")
Range("R3").Copy Range("J16")
Range("T3").Copy Range("K16")
Range("V3").Copy Range("L16")
Range("X3").Copy Range("M16")
Range("A4:B4").Copy Range("A16")
Range("D4").Copy Range("B16")
Range("F4").Copy Range("C16")
Range("H4").Copy Range("D16")
Range("J4").Copy Range("E16")
Range("L4").Copy Range("F16")
Range("N4").Copy Range("G16")
Range("P4").Copy Range("H16")
Range("R4").Copy Range("J16")
Range("T4").Copy Range("K16")
Range("V4").Copy Range("L16")
Range("X4").Copy Range("M16")
End With
End Sub
I want it to loop through the end in column A until the end and grab all the months in these ranges associated with Column A. From what Smitty has told me, and I have seen it before is there a way to concantenate all these ranges in one line of code instead of doing it this way?
I am trying to use Excel Jeanie, but I am at work right now, I will try to show the sheet later from my home computer.
If you ened further clarification, please let me know.
Kurt