Missing code

taglimm

New Member
Joined
Apr 10, 2019
Messages
6
In the below formula, I'm missing an important code that I'm at a loss to figure out.

'Delete unused formulas column J
Range("J3").Select
Range(Selection, Selection.End(xlDown)).Select
??????????????
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("A3").Select

The object is to delete the formulas contained cells bellow the cells that contain data. I select J3, CTRL+Shift+down arrow to get to the last cell containing text. In the above code where the question marks are, is where I need to tell my form to select the next cell below (this code needs to be fluid as the length of the column varies day to day). then I continue on with the code as written to delete the unused formulas from that point down.

Any assistance would be much appreciated.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Is there any particular column that will always have data on the last row?
 
Upvote 0
Columns A through I will contain data but these columns are also fluid in that they change in length day to day.
 
Upvote 0
How about
Code:
   Range(Range("A" & Rows.Count).End(xlUp).Offset(1, 9), Range("J" & Rows.Count).End(xlUp)).ClearContents
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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