Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 334
Default sheets active vs select

What is the difference between using .active vs .select and when does one use
one versus the other, and why?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default sheets active vs select

I'm not sure you asked the question you meant to. The .Active property
applies to the ListObject object whereas the .Select property doesn't. You
probably meant the .Activate property. While the Select method can apply to
lots of things (but not the ListObject object), I presume you are asking
about these methods as they apply to a cell or range of cells. The VB help
files for the Select Method says this in its Remarks section...

"To select a cell or a range of cells, use the Select method.
To make a single cell the active cell, use the Activate method."

When in doubt about something, you should consider checking the help files.

--
Rick (MVP - Excel)


"Rick" wrote in message
...
What is the difference between using .active vs .select and when does one
use
one versus the other, and why?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default sheets active vs select

I guess I should have paid attention to your subject line before I answered
your posting.<g Dave has given you the answer to your question,

--
Rick (MVP - Excel)


"Rick Rothstein" wrote in message
...
I'm not sure you asked the question you meant to. The .Active property
applies to the ListObject object whereas the .Select property doesn't. You
probably meant the .Activate property. While the Select method can apply
to lots of things (but not the ListObject object), I presume you are
asking about these methods as they apply to a cell or range of cells. The
VB help files for the Select Method says this in its Remarks section...

"To select a cell or a range of cells, use the Select method.
To make a single cell the active cell, use the Activate method."

When in doubt about something, you should consider checking the help
files.

--
Rick (MVP - Excel)


"Rick" wrote in message
...
What is the difference between using .active vs .select and when does one
use
one versus the other, and why?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sheets active vs select

Try grouping multiple sheets, then activating a different one of those
grouped/selected sheets.

You'll see that the sheet grouping stays, but the activesheet is different.

It's similar to selecting a cell and activating a cell.

If you select a range of cells (say A1:E10), then activate a cell in that
selection, the selection stays the same, but the activecell changes.

In code:

Range("a1:e10").Select
Range("c5").Activate

vs

Range("a1:e10").Select
Range("c5").Select



Rick wrote:

What is the difference between using .active vs .select and when does one use
one versus the other, and why?


--

Dave Peterson
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
Row select mode to highlight active row of active cell Bart Fay[_2_] Excel Discussion (Misc queries) 0 May 11th 10 09:34 PM
Select Active Cells Umbu Excel Worksheet Functions 0 June 24th 08 02:03 PM
How to select the active sheet? Eric Excel Worksheet Functions 1 August 7th 07 03:40 PM
How to select last active row jcc31[_5_] Excel Programming 1 December 6th 05 04:05 AM
In 3 active sheets in wkbk, determine& display the # of sheets that have data wrpalmer Excel Discussion (Misc queries) 1 November 4th 05 02:01 PM


All times are GMT +1. The time now is 01:18 AM.

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"