SirSchiz
New Member
- Joined
- May 4, 2011
- Messages
- 24
Hi All,
Thanks for reading. I have a silly question. For the life of me I can not figure this simple code out. How would I state it to loop through each worksheet in the active workbook?
This code Finds a blank cell in the Used Range (Always A1:A) then for each empty cell it simply insert a value of 1.
Any help is appreciated!
Thanks for reading. I have a silly question. For the life of me I can not figure this simple code out. How would I state it to loop through each worksheet in the active workbook?
This code Finds a blank cell in the Used Range (Always A1:A) then for each empty cell it simply insert a value of 1.
Any help is appreciated!
Code:
Sub FindABlank()
For Each D In ActiveSheet.UsedRange
If IsEmpty(D) Then
D.Value = "1"
End If
Next
End Sub