I have some code that will delete data on Sheet A. Can someone tell me how to ‘extend’ this code to also delete data (in different ranges) from Sheet B? I suspect that I have to write something for Sheet B (which would be inactive at the moment that the macro is run, b/c it is a different sheet….ps: can somone (Hans?) suggest a good text on VBA….that will explain it and is readable?
The code is have so far is this:
ActiveSheet.Unprotect Password:=”open”
Range(“Q3:T5”).Select
Selection.ClearContents
Range(“P13:P14”).Select
Selection.ClearContents
Range(“P15:P16”).Select
Selection.ClearContents
Range(“p17:p18”).Select
Selection.ClearContents
Range(“B23:F42”).Select
Selection.ClearContents
Range(“I23:I42”).Select
Selection.ClearContents
Range(“J23:N42”).Select
Selection.ClearContents
Range(“P23:P42”).Select
Selection.ClearContents
Range(“V23:V42”).Select
Selection.ClearContents
Range(“X23:X42”).Select
Selection.ClearContents
Selection.ClearContents
Range(“c16″).Select
ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True _
, AllowFormattingRows:=True, AllowInsertingRows:=True, Password:=”open”