+ Reply to Thread
Results 1 to 8 of 8

SAME Cell selection across the workbook

  1. #1
    Registered User
    Join Date
    01-18-2011
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    SAME Cell selection across the workbook

    Hi,
    I hope someone can help me with this little problem..
    Other than using the alt key to select multiple worksheets and then clicking a cell, then clicking the tab of the sheet required and finding the same cell already selected...is it possible using VBA, to synchronize the same cell selection throughout a workbook.. ie so that on all sheets the same cell is always selected?
    just as a working example
    On sheet 1, select C9 make a change to that cell
    then going to sheet 2, cell C9 should be already selected make a change to it then select cell A1..then going on to sheet 3, A1 already being selected,make any changes to it, select B2
    Back on sheet 1 , B2 should be selected. etc etc.
    Just for clarification, i dont need to sync any info across the sheets, i just need the same cell already selected.
    many thanks for any help

    Neil
    Last edited by NeilE; 03-07-2011 at 09:37 AM. Reason: solved query

  2. #2
    Forum Contributor johnjohns's Avatar
    Join Date
    11-19-2007
    Location
    Dubai, UAE
    MS-Off Ver
    2003 and 2007
    Posts
    526

    Re: SAME Cell selection across the workbook

    This can be one way.
    Please Login or Register  to view this content.
    But you cannot select multiple cells at a time. To me, I find it as a pain.
    regards

    johnjohns

    When you are not sure where to go, every road takes you there!

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: SAME Cell selection across the workbook

    Hi Neil,

    Look at the attached. I have created a Public Variable to keep the address of the last selected cell on a sheet. Whenever you click on a new cell on that sheet it updates this global/public variable.

    Then when you change sheets it selects the spot you were on, on the last sheet. You will need to have the same code behind each sheet and the Public variable in Module for this to work.

    Hope this solves it for you.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SAME Cell selection across the workbook

    You might try placing the below in ThisWorkbook in VBE

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-18-2011
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: SAME Cell selection across the workbook

    Hi Guys,
    Thank you so very much all of you for your time you put into this.
    I think the winner has to be DonkeyOte, a very simple but perfectly working solution to the problem...It also allows a multiple selection too.
    But once again thank you all I appreciate it very much.
    One more Q...how do I show that this thread is solved?

    Kindest regards to all
    Neil

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SAME Cell selection across the workbook

    Per FAQ:

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  7. #7
    Registered User
    Join Date
    01-18-2011
    Location
    Long Island, NY
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: SAME Cell selection across the workbook

    Awesome stuff!!
    Cheers mate
    Neil

    PS Any recommendations on first steps learning VBA for excel?

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: SAME Cell selection across the workbook

    You'll find most are self taught largely through trial & error.

    The Macro Recorder is obviously a very useful tool for getting the basic syntax of most things in Excel.

    In my opinion trying to answer questions on boards like this is the quickest and best way for picking up good skills covering a diverse range of Excel's functionality.

+ 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