This is Module 111 and I want to record a macro to change (Example) ElseIf (Range("G11").Value = 20) Then
Change 20 to 22. But I need to do the same with Module 141, Module 26, Module 51 and Module 87 all in the same workbook. Can you assit.
Sub Top10Mega4()
If (Range("G11").Value = 9) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 6) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 24) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 11) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 16) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 4) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 8) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 25) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 23) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 18) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 20) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 17) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 2) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 1) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 14) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 3) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 7) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 19) Then
Range("AS6").Select
ActiveCell.Value = ("1")
End If
End Sub
Change 20 to 22. But I need to do the same with Module 141, Module 26, Module 51 and Module 87 all in the same workbook. Can you assit.
Sub Top10Mega4()
If (Range("G11").Value = 9) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 6) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 24) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 11) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 16) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 4) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 8) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 25) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 23) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 18) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 20) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 17) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 2) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 1) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 14) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 3) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 7) Then
Range("AS6").Select
ActiveCell.Value = ("1")
ElseIf (Range("G11").Value = 19) Then
Range("AS6").Select
ActiveCell.Value = ("1")
End If
End Sub