Sub ReplaceMe()
Dim x as Long
x = Cells(Rows.Count, 21).End(xlUp).Row
On Error Resume Next
Range("U1:U" & x).SpecialCells(xlCellTypeBlanks).Value = "BRANCH"
On Error Goto o
End Sub
Try1. I need to filter blanks in columns U and update those blanks as BRANCH.
Sub Fill_Blanks()
On Error Resume Next
Columns("U").SpecialCells(xlBlanks).Value = "BRANCH"
On Error GoTo 0
End Sub
I don't know what this means. Can you spell it out in more detail?2. I need to paste as blanks only for the used range in a column
Hi Peter,
Thanks a lot. It works great.. but it is filling the data till the end of the page but i need to paste only as "Branch" based on the data used based on Column A.
Columns("U").Resize(Range("A" & Rows.Count).End(xlUp).Row).SpecialCells(xlBlanks).Value = "BRANCH"
As indicated by the OP's comments, it goes to the end of the UsedRangeHi Peter, with Columns("U"), does the code determine it's own last used row in that column i.e. row of last used cell? If so, was unaware, may try to use this more often, thanks.