Symmo
New Member
- Joined
- Sep 6, 2012
- Messages
- 3
Hi,
I have several Macros on this theme I would like to create all with the aim of copying a column and pasting values elsewhere in the worksheet according to what the current month is. Say I have a cell B2 with a dropdown of Months (Aug-Jul). I have a range "Spend_In_Scope_Forecast" which is my column to be copied, and another range "SIS" which is 12 columns wide, one for each month Aug-Jul. These are to capture monthly variances of these figures, and are used for charts etc.
I have put in a button to click when I want to perform the copy and have managed to get the range to copy to the August column by naming a 1 column range called "SIS_Aug", using the following code but I'm afraid this is as far as my Macro competence takes me!
Sub SISCopy()
Range("Spend_In_Scope_Forecast").Select
Selection.Copy
Range("SIS_Aug").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
I would be very grateful if anyone can help out. I have an example of the document if that helps.
Thanks in advance!
I have several Macros on this theme I would like to create all with the aim of copying a column and pasting values elsewhere in the worksheet according to what the current month is. Say I have a cell B2 with a dropdown of Months (Aug-Jul). I have a range "Spend_In_Scope_Forecast" which is my column to be copied, and another range "SIS" which is 12 columns wide, one for each month Aug-Jul. These are to capture monthly variances of these figures, and are used for charts etc.
I have put in a button to click when I want to perform the copy and have managed to get the range to copy to the August column by naming a 1 column range called "SIS_Aug", using the following code but I'm afraid this is as far as my Macro competence takes me!
Sub SISCopy()
Range("Spend_In_Scope_Forecast").Select
Selection.Copy
Range("SIS_Aug").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
End Sub
I would be very grateful if anyone can help out. I have an example of the document if that helps.
Thanks in advance!