I have two sheets. I already have a button to save the data to another sheet called "Data" and it is well working. Now I created one button which needs to do two jobs. It will clear cells (shown in the code) and then it will put in the cell C2 next consecutive number.
Sub ClearButton()
Range("L1", "L2").Clear
Range("C2", "B3").Clear
Range("J5", "K5").Clear
End Sub
I want the cell C2 in this Entry sheet to check the column A in another sheet called "Data". In the Data sheet in column A it saves all the customer number as 1,2,3 and carries on. So it must check the last entry or the maximum number in the column A rows. So if the maximum number in Column A(Data Sheet) is 5 then it will put in cell C2(Entry Sheet) 6 so that new entry is done.