ExcelNoob222
Board Regular
- Joined
- Jun 17, 2020
- Messages
- 77
- Office Version
- 365
- Platform
- Windows
Hi,
My first issue is I am trying to select the last row of my data from column A to K. The below code selects the right cell in column A but I cant seem to figure out how to get the selection to column K.
I have tried:
and
Any ideas?
My second issue. I have another tab with subtotal rows. I want to be able to select all of the subtotal rows and highlight them and put thick border around. Any easy way to do this?
Thanks!
My first issue is I am trying to select the last row of my data from column A to K. The below code selects the right cell in column A but I cant seem to figure out how to get the selection to column K.
VBA Code:
LastRowFormat = Range("A" & Rows.Count).End(xlUp).Row
Range("A" & LastRowFormat).Select
I have tried:
Code:
LastRowFormat = Range("A" & Rows.Count).End(xlUp).Row
Range("A:K" & LastRowFormat).Select
Code:
LastRowFormat = Range("A" & Rows.Count).End(xlUp).Row
Range("A" & LastRowFormat & "K").Select
Any ideas?
My second issue. I have another tab with subtotal rows. I want to be able to select all of the subtotal rows and highlight them and put thick border around. Any easy way to do this?
Thanks!