i need coding in a command button ie in commandbutton1_click()
when i click the command button , values from cell A4 to the last filled cell are all deleted, leaving them empty cells.
thanks
i need coding in a command button ie in commandbutton1_click()
when i click the command button , values from cell A4 to the last filled cell are all deleted, leaving them empty cells.
thanks
Maybe this?
Greg![]()
Sub Button1_Click() Dim rng As Range Set rng = ActiveSheet.Range("A4:A" & Range("A" & Rows.Count).End(xlUp).Row) rng.Value = "" End Sub
Just a guy trying to make work stuff easier.
thanks, it works perfectly
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks