Hi,
I assume you are referring to VBA.
VBA can't select a cell or range on a sheet which isn't active.
You have to activate the sheet, then select the range:

Sheets("A").Activate
Range("A1").Select

However, most of the time you don't have to select the cell or range you want 
to work on.
For example, the following 2 codes snippets both turn A1 on sheet A, red:

Sheets("A").Activate

Range("A1").Select
Selection.Interior.ColorIndex = 3

Sheets("A").Range("A1").Interior.ColorIndex = 3

It's also quicker not to select the cell you want to work on.
This is quite different to the way the macro recorder works.

Hope this helps.
Regards - Dave.

> Hello
> 
> I'm having a problem with selecting a cell from a different Sheet. Say
> I'm in Sheet B and I want to select a cell ( or range of cells) from
> Sheet A. All I would need to do in click on Sheet A and select that
> intended cell(s). However, Excel doesn't change the name of the Sheet
> automatically upon selection. I would have manually go in and change
> it myself.
> 
> Is anyone else having this problem?
> 
> Thank you.


_________________________________________________________________
Looking to move somewhere new this winter? Let ninemsn property help
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Edomain%2Ecom%2Eau%2F%3Fs%5Fcid%3DFDMedia%3ANineMSN%5FHotmail%5FTagline&_t=774152450&_r=Domain_tagline&_m=EXT
--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to