Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Select OR Activate ? Which when and Why?

Select OR Activate ? Which when and Why?

i have never been able to work out when i should select and when i
should activate when using vba - does anyone have a good explanation?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Select OR Activate ? Which when and Why?

Select can be multiple cells, but only one is active.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Buffyslay" wrote in message
ups.com...
Select OR Activate ? Which when and Why?

i have never been able to work out when i should select and when i
should activate when using vba - does anyone have a good explanation?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 812
Default Select OR Activate ? Which when and Why?

I suggest searching this newsgroup for "select versus activate" or
"select vs activate".

Merjet

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Select OR Activate ? Which when and Why?

Sub a()
Range("A1:C5").Select
Range("B2").Activate
End Sub


--
Jim
"Buffyslay" wrote in message
ups.com...
| Select OR Activate ? Which when and Why?
|
| i have never been able to work out when i should select and when i
| should activate when using vba - does anyone have a good explanation?
|


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Select OR Activate ? Which when and Why?

Usually not necessary or desirable

range("a2:a33").copy range("b3")

--
Don Guillett
SalesAid Software

"Buffyslay" wrote in message
ups.com...
Select OR Activate ? Which when and Why?

i have never been able to work out when i should select and when i
should activate when using vba - does anyone have a good explanation?





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Select OR Activate ? Which when and Why?

A Selection may contain one or more cells. Activate makes exactly one of
those cells active. E.g,


Sub AA()
Range("A1:A10").Select
MsgBox "Note the ActiveCell: (A1)"
Range("A5").Activate
MsgBox "Note the ActiveCell: (A5)"
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)

"Buffyslay" wrote in message
ups.com...
Select OR Activate ? Which when and Why?

i have never been able to work out when i should select and when i
should activate when using vba - does anyone have a good explanation?



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
.Activate vs. .Select in VBA Dave F Excel Discussion (Misc queries) 1 January 24th 07 03:41 PM
select vs. activate SP[_4_] Excel Programming 4 June 15th 05 12:27 PM
select vs activate Ron de Bruin Excel Programming 0 September 9th 04 04:05 PM
select vs activate Chip Pearson Excel Programming 0 September 9th 04 04:02 PM
Difference between .Activate and .Select JMMach, MCSC Excel Programming 3 August 24th 04 05:47 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"