Hi,
I have a code that aims to clear contents on col F and G, and for sheets that begin with ACD. However when i an the macro it only seems to clear contents on the current sheet that I am on. Thanks in advance to anyone we will be helping me
![]()
Sub clearcontents() Dim S_heet As Worksheet For Each S_heet In ActiveWorkbook.Sheets If Left(S_heet.Name, 3) = "ACD" Then With S_heet Columns("F:G").Select Selection.clearcontents End With End If Next S_heet End Sub
Bookmarks