+ Reply to Thread
Results 1 to 6 of 6

Monitor multiple cells for an input event

  1. #1
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    Monitor multiple cells for an input event

    Below is code supplied by JBeaucaire and it works exactly as I requested. However, I need this to happen for multiple cells.

    The cells that I need to monitor are B10, B12, B14.... through B96 and F, J, N, R columns for the same rows. The input values will be stored in cells AM10, AM12, AM14 .... through 96 for the B column results. Then for F, J, N, R will be AQ, AU, AY and BC respectively.

    Additionally, when B10 has an input, and the user input box displays for the number of hours, there is a cancel button available, but it does not work. How can I exit the loop and clear contents of B10 if the "Cancel" button is clicked in the dialogue box.

    I know I'm asking alot. thanks in advance.


    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 05-07-2014 at 09:15 PM. Reason: Added missing CODE tags. Please read and follow the Forum Rules, link above in the menu bar. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Monitor multiple cells for an input event

    I would remove the ws_Activate macro completely, that's impractical for the increased scope. Then this should work since your column associations are consistently 37 columns apart.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 05-07-2014 at 10:30 PM. Reason: correction.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Monitor multiple cells for an input event

    You rock! Thank you. Works perfectly, had to delete the Range("B10") in the DO loop. Is there a way to address the cancel button operability?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Monitor multiple cells for an input event

    What do you mean? The hours are a requirement aren't they?

  5. #5
    Registered User
    Join Date
    05-07-2014
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Monitor multiple cells for an input event

    They are a requirement, but if the user chooses an incorrect option, purely by mistake, they are forced to go through with entering a number just to go back to the cell and choose the correct one again. If they are allowed to use the supplied cancel button, that would be helpful.

    Thanks

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Monitor multiple cells for an input event

    Then perhaps:
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Sheet Change Event Dubuggin: Restrict Cell Values toand Changing cells based on input
    By cmore in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-28-2013, 02:37 PM
  2. Returning multiple values in multiple cells based upon one input
    By ccoonsk in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-14-2012, 10:01 AM
  3. Monitor Combobox Input
    By wildjester in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2009, 03:27 AM
  4. [SOLVED] change event for multiple cells
    By Guy Normandeau in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-20-2006, 04:20 PM
  5. How to display multiple pages on one large monitor
    By mrkrug3 in forum Excel General
    Replies: 1
    Last Post: 06-23-2005, 09:05 PM

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