How do I set this macro to the activesheet rather than a named sheet?
![]()
Sub FillBlanks() Dim Lastrow As Double 'Fills Blank Cells with the Value of 0 Worksheets("InputData").Activate 'get Last row of data assume Column A has data on Lastrow Lastrow = Range("A65000").End(xlUp).Row 'fill all blank cells within data range to 0 Range("A3:A400" & Lastrow).SpecialCells(xlCellTypeBlanks).Value = "-" End Sub
Bookmarks