I want to select multiple columns from "A23" down to its last row and "D23:H23" down to its last row at the same time but I am having trouble. Below is my current code but it selects the columns individual. Can someone please help? These columns will be dynamic in nature where the number of rows may vary. There could also be instances where there columns are empty and I may have trouble with the xldown function.I will attache a picture of how I would like the code to work below
Sub selectColumns()
Dim lrow As Long
Dim lrow2 As Long
lrow = Range(Range("A23"), Range("A23").End(xlDown)).Select
lrow2 = Range(Range("D23:H23"), Range("D23:H23").End(xlDown)).Select
End Sub