ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to select entire column using VBA (https://www.excelbanter.com/excel-programming/284576-how-select-entire-column-using-vba.html)

Phill

How to select entire column using VBA
 
How do you select an entire column using VBA?

MattShoreson[_8_]

How to select entire column using VBA
 

worksheets("sheet1").rows("A:A").select


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements

Don Guillett[_4_]

How to select entire column using VBA
 
activecell.entirecolumn.select

--
Don Guillett
SalesAid Software

"Phill" wrote in message
...
How do you select an entire column using VBA?




Tom Ogilvy

How to select entire column using VBA
 
What you posted raises and error. Perhaps you meant:

Worksheets("sheet1").Activate
Worksheets("sheet1").Range("A:A").select

or
Worksheets("Sheet1").Activate
Worksheets("Sheet1").Columns(1).Select

--
Regards,
Tom Ogilvy


"MattShoreson" wrote in message
...

worksheets("sheet1").rows("A:A").select


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

~~Now Available: Financial Statements.xls, a step by step guide to

creating financial statements




All times are GMT +1. The time now is 12:06 PM.

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