Hi, I ma trying to delete a bunch of cells on a hidden worksheet, but the only code I can get to work has a .select suffix that causes the worksheets to be viewed. Is ther anyway I can get around this using the code or similar below:-
Sub Clear_BOM()
'
' Clear_BOM Macro
Application.EnableCancelKey = xlDisabled
'
With ActiveWorkbook.Sheets("BOMM").Activate
'
Range("A20:F39").Select
Selection.ClearContents
Range("A4:A16").Select
Selection.ClearContents
End With
Cheers Davefish
Sub Clear_BOM()
'
' Clear_BOM Macro
Application.EnableCancelKey = xlDisabled
'
With ActiveWorkbook.Sheets("BOMM").Activate
'
Range("A20:F39").Select
Selection.ClearContents
Range("A4:A16").Select
Selection.ClearContents
End With
Cheers Davefish