redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,592
- Office Version
- 365
- Platform
- Windows
Hi all
Think I'm having a memory block..
I have this bit of code that will carry out a certain task on each of my worksheets
I actually want t the above to carry out the following in every worksheet but I can't seem to get them to work together..
thanks in advance
Think I'm having a memory block..
I have this bit of code that will carry out a certain task on each of my worksheets
Code:
Sub updateSheets()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
With ws
.Unprotect Password:=684556
.Range("J203:J256").Validation.Delete
End With
Next ws
End Sub
I actually want t the above to carry out the following in every worksheet but I can't seem to get them to work together..
Code:
Range("AB13").Select
Selection.Cut
Range("AB6").Select
ActiveSheet.Paste
Range("AB16").Select
Selection.ClearContents
Range("AC8").Select
Selection.ClearContents
Range("AD11").Select
ActiveCell.FormulaR1C1 = "blank cell"
Range("Z1").Select
thanks in advance