Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Activate and Select range/worksheet

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Activate and Select range/worksheet

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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Activate and Select range/worksheet

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
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Activate and Select range/worksheet

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

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Activate and Select range/worksheet

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



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Activate and Select range/worksheet

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


  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Activate and Select range/worksheet

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
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
Excel Worksheet Select (Activate ?) in VBS Gary''s Student Excel Programming 3 January 22nd 07 04:17 AM
IF statement to activate worksheet & select Range MentalDrow Excel Programming 1 June 19th 06 08:20 PM
what's the difference between Activate and Select for Worksheet? lvcha.gouqizi Excel Programming 1 October 28th 05 05:53 PM
Smart use of .Activate; .Select; .Copy with Sheets(1) va Worksheet Dennis Excel Discussion (Misc queries) 5 July 24th 05 01:05 AM


All times are GMT +1. The time now is 09:29 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"