ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Make last cell in currentregion the activecell (https://www.excelbanter.com/excel-programming/372116-make-last-cell-currentregion-activecell.html)

Snowsride

Make last cell in currentregion the activecell
 
I need some code to make the last cell in the currentregion the active cell

Grateful for any help.



stevebriz

Make last cell in currentregion the activecell
 
check this page out.

http://www.ozgrid.com/VBA/ExcelRanges.htm


Snowsride wrote:
I need some code to make the last cell in the currentregion the active cell

Grateful for any help.



Dave Peterson

Make last cell in currentregion the activecell
 
with selection.currentregion
.cells(.cells.count).activate '.select?
end with

Snowsride wrote:

I need some code to make the last cell in the currentregion the active cell

Grateful for any help.


--

Dave Peterson

Snowsride

Make last cell in currentregion the activecell
 
Dave

Just the job!

Thanks

"Dave Peterson" wrote:

with selection.currentregion
.cells(.cells.count).activate '.select?
end with

Snowsride wrote:

I need some code to make the last cell in the currentregion the active cell

Grateful for any help.


--

Dave Peterson



All times are GMT +1. The time now is 03:13 AM.

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