ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting columns (https://www.excelbanter.com/excel-programming/354934-selecting-columns.html)

PaulaO

Selecting columns
 
I need to find certain text, then select the entire column that contains that
text, as well as the one next to it. I know how to select the column the
text appears in, I just can't figure out how to add the next column. Any
assistance would be immensely apprceciate.

Paula

JE McGimpsey

Selecting columns
 
One way:

Cells(3, 10).Resize(, 2).EntireColumn.Select

In article ,
PaulaO wrote:

I need to find certain text, then select the entire column that contains that
text, as well as the one next to it. I know how to select the column the
text appears in, I just can't figure out how to add the next column. Any
assistance would be immensely apprceciate.

Paula


Tim Barlow

Selecting columns
 
Paula,

One way is to use resize:

Sheets(1).Range("E22").Resize(1, 2).EntireColumn.Select

HTH

Tim


"PaulaO" wrote in message
...
I need to find certain text, then select the entire column that contains

that
text, as well as the one next to it. I know how to select the column the
text appears in, I just can't figure out how to add the next column. Any
assistance would be immensely apprceciate.

Paula





All times are GMT +1. The time now is 01:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com