PC Review


Reply
Thread Tools Rate Thread

Activate and Select range/worksheet

 
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      14th Jul 2007
Could someone kindly explain or refer me to some sources where I can
distingush between "activation" and "selection" of ranges? and worksheets?

I am quite confuse with the two concepts.

Thanks.

zhj23
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      14th Jul 2007
You can find some verbage on it in the VBA help files, in the VBA documentation
for Excel. Look for selecting and activating. Basically, you can Activate
a cell within a selection. When you select a sheet, range or object you
activate it. So activate and select can be used interchageably on most
objects.

"zhj23" wrote:

> Could someone kindly explain or refer me to some sources where I can
> distingush between "activation" and "selection" of ranges? and worksheets?
>
> I am quite confuse with the two concepts.
>
> Thanks.
>
> zhj23

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      14th Jul 2007
Select A1:B3
then use the tab to activate each cell in the selection.

The activecell is changes with each strike of the tab key. The selection
doesn't change.

Create a test workbook with a handful of worksheets.
Click on the first worksheet and ctrl-click on subsequent sheets.
You've selected a few sheets.

In that set of selected sheets, you can activate any one you want. Not too
dissimilar to the cells in the range.

zhj23 wrote:
>
> Could someone kindly explain or refer me to some sources where I can
> distingush between "activation" and "selection" of ranges? and worksheets?
>
> I am quite confuse with the two concepts.
>
> Thanks.
>
> zhj23


--

Dave Peterson
 
Reply With Quote
 
John
Guest
Posts: n/a
 
      14th Jul 2007
Welcome to the club. I've read a couple small books about VBA, the help
files, and quite a bit on here. I've worked with 4 or 5 programing
languages, in fact I first learned Basic when it was developed at
Dartmouth and you had to get up at 3 in the morning to have your cards
run through the reader and it spit out a bunch of errors.

It just looks to me like some half drunk committee sat down and decided
to develop the most confusing and misleading language possible in VBA.
There is no particular syntax or structure to it. There is no particular
way to do anything... there are 8 or 9 ways and 10 to 20 different names
for them. It is like an example of exactly how not to develop a
programming language. The only good news is that it meshes with Office
products pretty well.

You will find the same sort of confusion in terminology and description
time and time again if you delve deeper into VBA... It's endless.

John

zhj23 wrote:
> Could someone kindly explain or refer me to some sources where I can
> distingush between "activation" and "selection" of ranges? and worksheets?
>
> I am quite confuse with the two concepts.
>
> Thanks.
>
> zhj23

 
Reply With Quote
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      14th Jul 2007
Good explanation!!

You mean we can only activate "a" cell and CANNOT activate "a range"? Range
CAN only be "selected" and not "activated"?

zhj23

"Dave Peterson" wrote:

> Select A1:B3
> then use the tab to activate each cell in the selection.
>
> The activecell is changes with each strike of the tab key. The selection
> doesn't change.
>
> Create a test workbook with a handful of worksheets.
> Click on the first worksheet and ctrl-click on subsequent sheets.
> You've selected a few sheets.
>
> In that set of selected sheets, you can activate any one you want. Not too
> dissimilar to the cells in the range.
>
> zhj23 wrote:
> >
> > Could someone kindly explain or refer me to some sources where I can
> > distingush between "activation" and "selection" of ranges? and worksheets?
> >
> > I am quite confuse with the two concepts.
> >
> > Thanks.
> >
> > zhj23

>
> --
>
> Dave Peterson
>

 
Reply With Quote
 
=?Utf-8?B?emhqMjM=?=
Guest
Posts: n/a
 
      14th Jul 2007
Thanks for the good entertainment.

I have also gone through that experience of punching several holes on the
cards, only to be thrown out later 30 years ago.

Looks like we have also to be half-drunk before we can fully understand the
VBA language.

Cheers!!

zhj23

"John" wrote:

> Welcome to the club. I've read a couple small books about VBA, the help
> files, and quite a bit on here. I've worked with 4 or 5 programing
> languages, in fact I first learned Basic when it was developed at
> Dartmouth and you had to get up at 3 in the morning to have your cards
> run through the reader and it spit out a bunch of errors.
>
> It just looks to me like some half drunk committee sat down and decided
> to develop the most confusing and misleading language possible in VBA.
> There is no particular syntax or structure to it. There is no particular
> way to do anything... there are 8 or 9 ways and 10 to 20 different names
> for them. It is like an example of exactly how not to develop a
> programming language. The only good news is that it meshes with Office
> products pretty well.
>
> You will find the same sort of confusion in terminology and description
> time and time again if you delve deeper into VBA... It's endless.
>
> John
>
> zhj23 wrote:
> > Could someone kindly explain or refer me to some sources where I can
> > distingush between "activation" and "selection" of ranges? and worksheets?
> >
> > I am quite confuse with the two concepts.
> >
> > Thanks.
> >
> > zhj23

>

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      14th Jul 2007
Mostly, I agree with you. If the range is exactly one cell, then I don't see a
difference.

But technically, you can activate a range:

This won't fail in code:
Range("a1:b3").Activate
So you can activate a range.


zhj23 wrote:
>
> Good explanation!!
>
> You mean we can only activate "a" cell and CANNOT activate "a range"? Range
> CAN only be "selected" and not "activated"?
>
> zhj23
>
> "Dave Peterson" wrote:
>
> > Select A1:B3
> > then use the tab to activate each cell in the selection.
> >
> > The activecell is changes with each strike of the tab key. The selection
> > doesn't change.
> >
> > Create a test workbook with a handful of worksheets.
> > Click on the first worksheet and ctrl-click on subsequent sheets.
> > You've selected a few sheets.
> >
> > In that set of selected sheets, you can activate any one you want. Not too
> > dissimilar to the cells in the range.
> >
> > zhj23 wrote:
> > >
> > > Could someone kindly explain or refer me to some sources where I can
> > > distingush between "activation" and "selection" of ranges? and worksheets?
> > >
> > > I am quite confuse with the two concepts.
> > >
> > > Thanks.
> > >
> > > zhj23

> >
> > --
> >
> > Dave Peterson
> >


--

Dave Peterson
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select range on a worksheet Jim Microsoft Excel Programming 1 16th Nov 2007 08:15 PM
RE: Excel Worksheet Select (Activate ?) in VBS =?Utf-8?B?R2FyeScncyBTdHVkZW50?= Microsoft Excel Programming 3 22nd Jan 2007 04:17 AM
IF statement to activate worksheet & select Range =?Utf-8?B?TWVudGFsRHJvdw==?= Microsoft Excel Programming 1 19th Jun 2006 08:20 PM
what's the difference between Activate and Select for Worksheet? lvcha.gouqizi Microsoft Excel Programming 1 28th Oct 2005 05:53 PM
Smart use of .Activate; .Select; .Copy with Sheets(1) va Worksheet =?Utf-8?B?RGVubmlz?= Microsoft Excel Misc 5 24th Jul 2005 01:05 AM


Features
 

Advertising
 

Newsgroups
 


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