Which sheet? the activesheet?my sheet name
Not understanding the use of "begins with", do you mean if the seventh character is a 4?my seventh character from my sheet name begins with a "4"
What other code?if not continue to the rest of the code
Which sheet? the activesheet?
Not understanding the use of "begins with", do you mean if the seventh character is a 4?
What other code?
Sub Delete12()
If Mid(ActiveSheet.Name, 7, 1) = 4 Then
ActiveSheet.Rows(12).Delete 'you could do away with the activesheet and just have Rows(12).Delete
Else
MsgBox "Rest of your code here"
End If
End Sub
Sub Delete12()
If Mid(ActiveSheet.Name, 7, 1) = 4 Then ActiveSheet.Rows(12).Delete 'you could do away with the activesheet and just have Rows(12).Delete
' Rest of your code here
End Sub