Hi,
The VBA code I have is working fine.... until.... the codes do not fall in the cell that are stipulated in the code! I know what I need it to do but have failed several times to create the macro that will do it without a debug error. I am at my wits end now, as VBA coding does not come naturally to me
I have entered the code I have currently:
Sub Sub_10978070()
'
' Sub_10978070 Macro
'
'
Sheets("Info").Select
Columns("A:A").Select
Selection.Find(What:="10978070", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Range("A9:C9").Select
Selection.Copy
Sheets("Weekly Totals").Select
Range("G19").Select
ActiveSheet.Paste
Sheets("Info").Select
Application.CutCopyMode = False
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 13434879
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
There are a number of codes (currently with its own little macro!), which are always a list in Column A (though not always in the same order)
18098094 - Paste in cell D12
18067779 - Paste in cell A12
15377808 - Paste in cell A2
15387808 - Paste in cell D2
15127751 - Paste in cell J12
etc
I have to copy each code and place in a specific cell in the worksheet (Weekly Totals).
Any expertise would be much appreciated.
Thanks
The VBA code I have is working fine.... until.... the codes do not fall in the cell that are stipulated in the code! I know what I need it to do but have failed several times to create the macro that will do it without a debug error. I am at my wits end now, as VBA coding does not come naturally to me
I have entered the code I have currently:
Sub Sub_10978070()
'
' Sub_10978070 Macro
'
'
Sheets("Info").Select
Columns("A:A").Select
Selection.Find(What:="10978070", After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
Range("A9:C9").Select
Selection.Copy
Sheets("Weekly Totals").Select
Range("G19").Select
ActiveSheet.Paste
Sheets("Info").Select
Application.CutCopyMode = False
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 13434879
.TintAndShade = 0
.PatternTintAndShade = 0
End With
End Sub
There are a number of codes (currently with its own little macro!), which are always a list in Column A (though not always in the same order)
18098094 - Paste in cell D12
18067779 - Paste in cell A12
15377808 - Paste in cell A2
15387808 - Paste in cell D2
15127751 - Paste in cell J12
etc
I have to copy each code and place in a specific cell in the worksheet (Weekly Totals).
Any expertise would be much appreciated.
Thanks