Clear cell function

B

Brent Fanguy

I want to create a command button that when pressed will
clear a predefined cell range.
Example: Clear(A7:D20000)

Is there such a function?

TIA

Brent Fanguy
 
H

Harlan Grove

I want to create a command button that when pressed will
clear a predefined cell range.
Example: Clear(A7:D20000)

Is there such a function?

Function? No. Your button would need to call a macro that would run a statement
like

Range("A7:D20000").Clear

or

Range("A7:D20000").ClearContents
 
G

Guest

works like a charm.

thank you very much.

-----Original Message-----
...

Function? No. Your button would need to call a macro that would run a statement
like

Range("A7:D20000").Clear

or

Range("A7:D20000").ClearContents
 
G

Gord Dibben

Brent

Range("A7:D2000").Clear

Alternate..........

Tools>Macro>Record New Macro.

When recording is complete, assign the macro to a button.

Gord Dibben Excel MVP
 

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

Top