Deleting all cells after finished with Data

jrf001

New Member
Joined
Mar 16, 2002
Messages
19
Hi Team,

I have a spreadsheet with lots of data that runs for 10 days. I would like to know if after the 10 days I can push a command buttoin and all the cells that contain data can be deleted. There is other data on the spreadsheet that I don't want deleted, like column/row headers etc

Any quick ideas for someone not real familiar with vba or command buttons

cheers Jason
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi
There are various ways to determine what range needs to be cleared. I would simply choose the largest range expected and then add a bit to that...
Simple syntax for a macro or command_click event on a command button would be as such:

Range("A1:H65000").ClearContents

Tom
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,188
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top