Hello,
I am trying to write code that will select cells to the right of multiple selected cells, but not include the original selected cells. I have A8:A22 selected and am currently using the below code but it only returns one line across from the first row. If this could be replicated through the rest of the range I would have what I need.
Sub AWS_CTI()
Sheets("pivot table current").Select
Range(Range("A8"), Range("A8").End(xlDown)).Select
Range(Cells(Selection.Row, 2), Cells(Selection.Row, 16)).Select
End Sub
The code I have selects rows B8 through B16, which is what I want, but it doesn't select the rest of the range. It just does for A8 instead of doing it for A8 through A22.
Essentially, I have A8:A22 selected, and I want code that will take that selection, and move it one column to the right then enlarge the selection to the end of the data. How can i adjust or add to my code to make this happen?
Thank you for your time in advance.
I am trying to write code that will select cells to the right of multiple selected cells, but not include the original selected cells. I have A8:A22 selected and am currently using the below code but it only returns one line across from the first row. If this could be replicated through the rest of the range I would have what I need.
Sub AWS_CTI()
Sheets("pivot table current").Select
Range(Range("A8"), Range("A8").End(xlDown)).Select
Range(Cells(Selection.Row, 2), Cells(Selection.Row, 16)).Select
End Sub
The code I have selects rows B8 through B16, which is what I want, but it doesn't select the rest of the range. It just does for A8 instead of doing it for A8 through A22.
Essentially, I have A8:A22 selected, and I want code that will take that selection, and move it one column to the right then enlarge the selection to the end of the data. How can i adjust or add to my code to make this happen?
Thank you for your time in advance.