jsalazar82
New Member
- Joined
- Sep 8, 2017
- Messages
- 9
trying to fill a range of blank cells with the name of the sheet that they are in. not sure why Range("ActiveSheet.Name") does not work? any help appreciated!
HTML:
Dim rng As Range
Set rng = Range("B1:B100")
For Each cell In rng
If cell.Value <> "" Then
cell.Offset(0, -1).Value = Range("ActiveSheet.Name")
End If Next