Hi
I am trying to create a macro that will work by looking at a cell to determine the month, then copy the information into the relevant month on another workbook. This is what I have so far:
[pre]
[/pre]
It works in regard that there are no errors, but there is the slight problem that it isn't copying the information over to the other workbook
Any help would be greatly appreciated
Thanks
Rob
I am trying to create a macro that will work by looking at a cell to determine the month, then copy the information into the relevant month on another workbook. This is what I have so far:
[pre]
Code:
Sub transfer()
' transferring Macro
If ("E3") = "Jan" Then
Windows("Leatherhead_Greenford MASTER_TEST.xlsx").Activate
Sheets("Jan").Select
Windows("ProjectBook1.xlsm").Activate
Sheets("Sheet3").Select
Range("A3:G125").Select
Selection.copy
Windows("Leatherhead_Greenford MASTER_TEST.xlsx").Activate
Sheets("Jan").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
ElseIf ("E3") = "Feb" Then
Windows("Leatherhead_Greenford MASTER_TEST.xlsx").Activate
Sheets("Feb").Select
Windows("ProjectBook1.xlsm").Activate
Sheets("Sheet3").Select
Range("A3:G125").Select
Selection.copy
Windows("Leatherhead_Greenford MASTER_TEST.xlsx").Activate
Sheets("Feb").Select
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("A1").Select
etc for each month
End Sub
It works in regard that there are no errors, but there is the slight problem that it isn't copying the information over to the other workbook
Any help would be greatly appreciated
Thanks
Rob