VBA Project using two clear all buttons on one excel sheet

Lopez267

New Member
Joined
Sep 29, 2020
Messages
1
Office Version
  1. 2013
These are the cells that need to be cleared for each of the two buttons. The first set will be cleared separately from the first second set of cells. We are using Google Docs as well and wondering if there is a different format for that or is there a way to save the excel to a google doc keeping the formulas I already have on the excel sheet?

Sub Clearcells()
Range("D28", "E31").Clear
Range("D35", "E38").Clear
Range("D42", "E45").Clear
Range("D49", "E54").Clear
Range("D58", "E61").Clear
Range("D65", "E68").Clear
Range("D72", "E75").Clear
Range("C83", "C86").Clear
End Sub
Sub Clearcells()
Range ("M28", "N31").Clear
Range("M35", "N38").Clear
Range("M42", "N45").Clear
Range("M49", "N54").Clear
Range("M58", "N61").Clear
Range("M65", "N68").Clear
Range("M72", "M75").Clear
End Sub
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,226,730
Messages
6,192,708
Members
453,748
Latest member
akhtarf3

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