Clearing certain cells

  • Thread starter Thread starter anthony Slater
  • Start date Start date
A

anthony Slater

I have a worksheet with 4 cells that take user-inputted
values. The rest of the worksheet is protected to avoid
potential deletion of formulas

Is there a macro (or something else) I can assign to a
form button that will automatically clear or zero the 4
cells when the button is clicked?

Any help or suggestions appreciated (as always)
 
Hi
try something like

sub foo()
range("A1").clearcontents
range("D2").clearcontents
....
end sub
 
Frank

Thanks mate...worked a treat
-----Original Message-----
Hi
try something like

sub foo()
range("A1").clearcontents
range("D2").clearcontents
....
end sub

--
Regards
Frank Kabel
Frankfurt, Germany



.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top