#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default activate

What is the difference between Range().activate and Range().select?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default 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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 161
Default 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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default 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

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 VBA Gary''s Student Excel Programming 0 August 17th 07 01:53 AM
activate VBA Gary''s Student Excel Programming 0 August 17th 07 01:48 AM
activate VBA geebee Excel Programming 0 August 17th 07 01:47 AM
Windows().Activate vs Workbooks().Activate Gary''s Student Excel Programming 4 November 6th 06 02:01 PM
Workbook.Activate / Window.Activate problem Tim[_44_] Excel Programming 3 February 3rd 06 11:38 PM


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

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

About Us

"It's about Microsoft Excel"