How to deselect the first cell out of column range selection?

Klash Ville

Board Regular
Joined
Sep 19, 2017
Messages
83
Let's imagine that after filtering, I have the visible cells of L104 to L110.

I select that range by selecting the respective Table Header name.

Within that range, how to dynamically, deselect the very first cell (L104) while keeping the other (L105 to L110) selected?
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
This seems to work.

Code:
Sub test2()
Dim r As Range
Set r = Selection
Set r = r.SpecialCells(xlCellTypeVisible)
Set r = r.Areas(r.Areas.Count)
Set r = r.Offset(1).Resize(r.Cells.Count - 1, 1)
r.Select
End Sub
 
Upvote 0
This seems to work.

Code:
Sub test2()
Dim r As Range
Set r = Selection
Set r = r.SpecialCells(xlCellTypeVisible)
Set r = r.Areas(r.Areas.Count)
Set r = r.Offset(1).Resize(r.Cells.Count - 1, 1)
r.Select
End Sub

Worked flawlessly, thank you so much!!!! Perfect!
 
Upvote 0

Forum statistics

Threads
1,215,366
Messages
6,124,516
Members
449,168
Latest member
CheerfulWalker

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