+ Reply to Thread
Results 1 to 6 of 6

Current cell position for a non Active worksheet

  1. #1
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Current cell position for a non Active worksheet

    Hi,
    I need the cell address where the cursor is (in a non active worksheet).

    Every help appreciated.

    Thanks
    Last edited by Wizz; 12-15-2009 at 09:08 PM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Current cell position for a non Active worksheet

    Every sheet has it's own selection (cursor position). When Sheet1 is active, Sheet2 still (also) has a cursor position.

    Each TAB (Sheet) has its cursor position (selection)

    To find these
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Current cell position for a non Active worksheet

    Gracias Ricardo,
    Is there any way to get that address without activating the sheet?
    I have a procedure perform some tasks in a specific worksheet. The problem is that that procedure is called from any worksheet. I would like to perform the complete procedure without having to switch sheets. Every sheet has some onActivate procedures.

    Thanks again

  4. #4
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Current cell position for a non Active worksheet

    hi,

    Here's a link to another thread with examples that are similar to Ricardo's one, & also has some discussion.
    http://www.eggheadcafe.com/software/...cted-rang.aspx

    Edit: Note Dave's use of ".enableevents = false"

    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  5. #5
    Forum Contributor
    Join Date
    08-02-2007
    Location
    Panama & Austria
    MS-Off Ver
    2003 & 2010
    Posts
    186

    Re: Current cell position for a non Active worksheet

    Thanks a lot Ricardo and Rob,
    Unfortunately there is no single command or code line for that matter.

    Thanks again.

  6. #6
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Current cell position for a non Active worksheet

    Yep, I thought it was an interesting question & had a brief look in VBE's Object Browser before Googling for an answer. I'm surprised that shorter code/a single command doesn't seem to exist, but at least with the enable events & screen updating turned off, there shouldn't be much impact.

    If you're happy with our suggestions can you please mark the post as Solved?

    Thanks
    Rob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1