I'm assuming the calculator is not a form. When you place the button on the
sheet double click it to get to the code behind it and just set the values of
the cells you want with cells("row","column")
cells(1,1)=0
That sets cell A1 to 0
cells(3,5)=""
Double quotes set blanks so cell E3 would be cleared.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"GT" wrote:
> I want a button in my spreadsheet that will allow me to reset to zero or
> clear the contents of certain cells in a calculator I created .... how do i
> do this? Is there a formula in VB i can use (can't seem to get clearcontents
> to work)?
>
> Thanks
>
> GT
> --
> Just an amateur Microsoft Office enthusiast
|