+ Reply to Thread
Results 1 to 14 of 14

Change active cell WHEN a specific cell value changes

  1. #1
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Change active cell WHEN a specific cell value changes

    Hey Gang

    In cell M6 I have a CONCATENATE formula that returns a cell value like B300. I was looking for a way to automatically jump to the cell referenced in M6 whenever the value in M6 changes.
    Last edited by scaffdog845; 03-15-2012 at 12:44 PM.
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Change active cell WHEN a specific cell value changes

    Is there a cell/cells that the user changes causing M6 to update that can be monitored?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Change active cell WHEN a specific cell value changes

    Sorry will further modify the code
    didnt notice that there is a formula in M6
    Last edited by Kelshaer; 03-13-2012 at 09:28 AM.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Change active cell WHEN a specific cell value changes

    Here you Go:
    Paste this code in the Sheet's VBA code

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Change active cell WHEN a specific cell value changes

    Domski,

    Yes. When the user chooses a number from a list in L6 the value in M6 is changed to reflect a cell in B:B

    Kelshaer,

    I am getting a Compile Error Ambiguous Name Detected after putting this in the sheet code. There is already sheet code in there with the same name. Can I simply add the code itself to the end of the other code that already exists?

  6. #6
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Change active cell WHEN a specific cell value changes

    well,
    paste this in the beginning of your existing code or wherever you want to execute the othe macro.

    Please Login or Register  to view this content.
    then paste this below the existing code

    Please Login or Register  to view this content.

  7. #7
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Change active cell WHEN a specific cell value changes

    As there is only cell L6 that will effect M6 you might as well just test that for changes.

    Dom

  8. #8
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Change active cell WHEN a specific cell value changes

    Kelshaer

    I did as you suggested in your last reply and nothing happens with the active cell after changing L6 which in turn changed the value in M6. Here is what the complete page code looks like.

    Please Login or Register  to view this content.

  9. #9
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Change active cell WHEN a specific cell value changes

    I tried the code and it works perfectly.
    Please try the attached file.
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Change active cell WHEN a specific cell value changes

    Kelshaer The attached file does work as expected. However when I put the code exactly as you have it in the sheet in my workbook it doesn't work. I don't see anything jumping out at me as to why it would work in one and not the other.....
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Change active cell WHEN a specific cell value changes

    here you go:

    Please Login or Register  to view this content.

  12. #12
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Change active cell WHEN a specific cell value changes

    Kelshaer. I really appreciate the effort. The code works but in the live workbook it errors out when running some basic macros that are built into the book and when clearing multiple cells. I don't want to bother you to troublehsoot anything after the time you've already given me. Thanks.....

  13. #13
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Change active cell WHEN a specific cell value changes

    Ok. Use this instead and let me know the outcome

    Please Login or Register  to view this content.

  14. #14
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    373

    Re: Change active cell WHEN a specific cell value changes

    Kelshaer

    Sorry I dropped out of this thread without a final reply. The last of the code has everything working as ecpected and all the help was greatly appreciated!

+ 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