ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   VBA to select all cells with content (https://www.excelbanter.com/excel-discussion-misc-queries/260500-vba-select-all-cells-content.html)

Colin Hayes

VBA to select all cells with content
 

Hi

I need some advice with some VBA coding.

I need to select all the cells in my worksheet which have content.

Effectively selecting from A1 to the last cell in the last row ,
whichever it happens to be..

Can someone help with this?

Thanks

Bob Phillips[_4_]

VBA to select all cells with content
 
Try

Range("A1").CurrentRegion.Select

--

HTH

Bob

"Colin Hayes" wrote in message
...

Hi

I need some advice with some VBA coding.

I need to select all the cells in my worksheet which have content.

Effectively selecting from A1 to the last cell in the last row , whichever
it happens to be..

Can someone help with this?

Thanks




Colin Hayes

VBA to select all cells with content
 
In article , Bob Phillips
writes
Try

Range("A1").CurrentRegion.Select


HI

Yes , that's perfect - thanks!


All times are GMT +1. The time now is 09:38 AM.

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