KDavidP1987
Board Regular
- Joined
- Mar 6, 2018
- Messages
- 51
Hello,
I am trying to find a way to reduce a selection of cells by 1 row, from the bottom, using VBA. The same way you could on a keyboard by holding shift and the up key. This action is performed repeatedly across several tables, and is needed to remove the totals row at the bottom after selecting down.
So far, my VBA looks like this, but the command I tried (in bold below) isn't working
I feel like a dunce, because I haven't been able to find a simple solution through google so far.
Any ideas?
Sincerely,
Kristopher
I am trying to find a way to reduce a selection of cells by 1 row, from the bottom, using VBA. The same way you could on a keyboard by holding shift and the up key. This action is performed repeatedly across several tables, and is needed to remove the totals row at the bottom after selecting down.
So far, my VBA looks like this, but the command I tried (in bold below) isn't working
Code:
Range("B8:D8").Select
Range(Selection, Selection.End(xlDown)).Select
[B] Selection.Resize (Selection.Rows.Count - 1)[/B]
Selection.Copy
I feel like a dunce, because I haven't been able to find a simple solution through google so far.
Any ideas?
Sincerely,
Kristopher