hi ive got this these macros bellow i want to run them on all the sheets in the workbook named 150 of them. named sheet1 to sheet150
theses are the macros
AND
how would i do this without having to use
"Call (macro name)_sheet1"
"Call (macro name)_sheet2"
ect as id have to type in the sheet number 150 times
any ideas?
theses are the macros
Code:
Sub Bookies_names_to_every_row_2()
Range("B1:S1").Select
Selection.Copy
Range("B3:S3").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B6:S6").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B9:S9").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B12:S12").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B15:S15").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B18:S18").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B21:S21").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B24:S24").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B27:S27").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B30:S30").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B33:S33").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B36:S36").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B39:S39").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B42:S42").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B45:S45").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B48:S48").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B51:S51").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B54:S54").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B57:S57").Select
ActiveSheet.Paste
Range("B1:S1").Select
Selection.Copy
Range("B60:S60").Select
ActiveSheet.Paste
Application.CutCopyMode = False
End Sub
AND
Code:
Sub HorseRank_1()
Range("X3").Value = "Place"
Range("Y3").Value = "Name(s)"
Range("X4").Value = "1st"
Range("Y4:Y100").Value = ""
On Error Resume Next
For Each cell In Range("B4:S4")
cell.Offset(1, 0).Value = Application.Rank(cell.Value, Range("B4:S4"), 0)
Next
For i = 1 To 10
For Each cell In Range("B5:S5")
If cell.Value = i Then
setPlace = setPlace & cell.Offset(-2, 0).Value & ", "
End If
Next cell
Range("Y" & Rows.Count).End(xlUp).Offset(1, 0).Value = Left(setPlace, Len(setPlace) - 2)
setPlace = ""
Next i
Range("B5:S5").ClearContents
Range("Y5:Y100").ClearContents
End Sub
how would i do this without having to use
"Call (macro name)_sheet1"
"Call (macro name)_sheet2"
ect as id have to type in the sheet number 150 times
any ideas?