ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   select vs activate (https://www.excelbanter.com/excel-programming/309468-re-select-vs-activate.html)

Chip Pearson

select vs activate
 
While a Selection of cells may contain any number of cells, only
a single cell may be active. Select selects a range of cells, and
Activate make one of those cells Active. For single cell ranges,
Select and Activate do the same thing. For multi-cell ranges,
Activate makes one of the selected cells Active. For example, run
the following code:

Sub AAA()
Range("A1:A10").Select
Range("A5").Activate
End Sub

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"Simon Shaw" wrote in
message
...
what is the difference between using .Select and .Activate?
i.e. why would I
use one vs the other? When I use .Select I find I get more
errors, but its
not consistent.





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

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