ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Activate vs Select a sheet (https://www.excelbanter.com/excel-programming/388485-activate-vs-select-sheet.html)

John Broderick[_2_]

Activate vs Select a sheet
 
Hello all,

What is the difference between these two:
Sheets("Sheet1").Activate
Sheets("Sheet1").Select

Thanks,
John



JLGWhiz

Activate vs Select a sheet
 
You can select more than one, but only one can be active.

"John Broderick" wrote:

Hello all,

What is the difference between these two:
Sheets("Sheet1").Activate
Sheets("Sheet1").Select

Thanks,
John




John Broderick[_2_]

Activate vs Select a sheet
 
Ok, I understand that I can click on a sheet tab with the mouse to activate
it.
Then if I Ctrl-click I can select additional sheets.
Howver letws say we are dealing with just 2 hseets in the workbook.
If Sheet2 is active then the command Sheets("Sheet1").Activate
is the same as clicking on the Sheet1 tab with the mouse.
Does the command Sheets("Sheet1").Select do exactly the same thing?


"JLGWhiz" wrote in message
...
You can select more than one, but only one can be active.

"John Broderick" wrote:

Hello all,

What is the difference between these two:
Sheets("Sheet1").Activate
Sheets("Sheet1").Select

Thanks,
John






Wei Lu [MSFT]

Activate vs Select a sheet
 
Hello John,

Yes, if you only have 2 sheets, it is no difference.

Sheets("Sheet1").Activate is the same as clicking on the Sheet1 tab with
the mouse.

What's your problem you are facing?

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


John Broderick[_2_]

Activate vs Select a sheet
 
Hi Wei

I am reading through someone else's code, and they seem to use
Sheets("Sheet1").Select where
I would have used Sheets("Sheet1").Activate.
I think I understand the difference between Activate and Select as applied
to cell ranges, but
I was not too sure when applied to sheets.
It was unfamiliar to me and I just wanted to make sure I wasn't missing
somthing.

John


"Wei Lu [MSFT]" wrote in message
...
Hello John,

Yes, if you only have 2 sheets, it is no difference.

Sheets("Sheet1").Activate is the same as clicking on the Sheet1 tab with
the mouse.

What's your problem you are facing?

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no

rights.





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com