I’m not mega good on coding parts of excel/macros but I have something working already and want to alter it slightly.
Sub copybrum()
Dim c As Range
Dim j As Integer
Dim Source As Worksheet
Dim Target As Worksheet
‘ Change worksheet designations as needed
Set Source = ActiveWorkbook.Worksheets(“In School Events”)
Set Target = ActiveWorkbook.Worksheets(“Stourbridge”)
j = 2 ‘ Start copying to row 1 in target sheet
For Each c In Source.Range(“F1:F1000”) ‘ Do 1000 rows
If c = “Stourbridge” Then
Source.Rows(c.Row).Copy Target.Rows(j)
j = j + 1
End If
Next c
‘ Change worksheet designations as needed
Set Source = ActiveWorkbook.Worksheets(“In School Events”)
Set Target = ActiveWorkbook.Worksheets(“Birmingham”)
j = 2 ‘ Start copying to row 1 in target sheet
For Each c In Source.Range(“F1:F1000”) ‘ Do 1000 rows
If c = “Birmingham” Then
Source.Rows(c.Row).Copy Target.Rows(j)
j = j + 1
End If
Next c
End Sub
I actually want it to just copy from column A – I and not the whole row. I’ve tried altering the code but can’t get it to work right and most results I’ve found online wanted single columns and not a range hence I cant get it working right.
Any hellllllp?