ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   activate (https://www.excelbanter.com/excel-programming/406108-activate.html)

ranswert

activate
 
What is the difference between Range().activate and Range().select?
Thanks

Stefi

activate
 
If you have a single cell selected then nothing. But if you have a range of
cells selected (e.g. en entire column) then Range(actcell).activate leaves
your selected range unchanged and activates actcell within that range, while
Range(actcell).select clears the old selection and actcell shall be your new
selection.

Regards,
Stefi


€˛ranswert€¯ ezt Ć*rta:

What is the difference between Range().activate and Range().select?
Thanks


Dave Peterson

activate
 
Try this:

with activesheet
.range("a1:e12").select
.range("c7").activate
end with


ranswert wrote:

What is the difference between Range().activate and Range().select?
Thanks


--

Dave Peterson

ranswert

activate
 
Thanks for the info

"Stefi" wrote:

If you have a single cell selected then nothing. But if you have a range of
cells selected (e.g. en entire column) then Range(actcell).activate leaves
your selected range unchanged and activates actcell within that range, while
Range(actcell).select clears the old selection and actcell shall be your new
selection.

Regards,
Stefi


€˛ranswert€¯ ezt Ć*rta:

What is the difference between Range().activate and Range().select?
Thanks


ranswert

activate
 
I'll give that a try
thanks

"Dave Peterson" wrote:

Try this:

with activesheet
.range("a1:e12").select
.range("c7").activate
end with


ranswert wrote:

What is the difference between Range().activate and Range().select?
Thanks


--

Dave Peterson


Stefi

activate
 
You are welcome! Thanks for the feedback!
Stefi

€˛ranswert€¯ ezt Ć*rta:

Thanks for the info

"Stefi" wrote:

If you have a single cell selected then nothing. But if you have a range of
cells selected (e.g. en entire column) then Range(actcell).activate leaves
your selected range unchanged and activates actcell within that range, while
Range(actcell).select clears the old selection and actcell shall be your new
selection.

Regards,
Stefi


€˛ranswert€¯ ezt Ć*rta:

What is the difference between Range().activate and Range().select?
Thanks



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

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