sub test()
dim i as long
i=activecell.row
range(cells(i,"C"),cells(i,"D"),cells(i,"E")).clearcontents
end sub
Hello,
This is my first time here. I have just worked out how to run a macros in excel, and set up a button in the ribbon.
Next, the aim is to create VBA which will change every cell value, in the first row, in collumn H, for all rows in the sheet, to zero.
The above code is as close as I can find on google. The problem is I do not know how to set the range to the entire sheets first rows only. (I have VBA which inserts blank row between every value change in collumn D).
Best regards
Bookmarks