+ Reply to Thread
Results 1 to 15 of 15

After select one value from list jump into specific cell for mandatory input

  1. #1
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    After select one value from list jump into specific cell for mandatory input

    Hello all, hope you can help me out here a little bit. I'm trying to accomplish the following thing.

    I have a column D with a drop down list configured by data validation. The values from the list are coming in this example from column H. There are few values the user can pick from. One of these values is 'Released'. When the user selected 'Released' for example in cell D2 I want him to jump in cell E2 and force the user to enter a value before leaving this cell. This behavior would be required for the following cells as well like for example selecting 'Released' in cell D3 then jump right away in cell E3. If the user is picking another value from the list beside 'Released' like 'Open' there is no need to jump in the cell of column E. Hope I could explain my challenge here. I'm using Excel 2016.

    Thank you


    000016.jpg

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: After select one value from list jump into specific cell for mandatory input

    Not very practical but possibly...
    Please Login or Register  to view this content.
    ...placed in the worksheet's code module.
    Last edited by dangelor; 05-14-2020 at 08:09 AM.

  3. #3
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    Hi dangelor, thanks for the support.
    But nothing happened when I pasted the code into the worksheet code.
    And how do I know that it's column D and E where the code is taking affect?

    Thank you
    Last edited by pete1980; 05-14-2020 at 11:53 AM.

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: After select one value from list jump into specific cell for mandatory input

    The code searches column 4 ("D") for a cell value of "Released". If it find one, it's 'labeled' "c". It then looks at the cell one column to the right ("E") of c and if that cell is empty, it selects that cell. If it isn't empty, it looks for the next cell in column 4 that meets the requirements.

    My guess is that your file has events disabled. Try running this line of code in the Immediate window (Ctrl + G)
    Please Login or Register  to view this content.


    Meanwhile, it works in the file below.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    yes that's exactly what i'm looking for...AWESOME! but for some reason it doesn't run in my excel...
    i'm getting an error. Attachment 677721

  6. #6
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    ...and now your excel won't work either. Am I missing something? Needs the macro to be activated somehow? Thanks for your help

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: After select one value from list jump into specific cell for mandatory input

    Your link doesn't work. Try the Application.EnableEvents code again. Meanwhile I'll try some error trapping. May not be until tomorrow, though.

  8. #8
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    It actually works when i'm using the code Application.EnableEvents = True again. You have an idea how it will stay permanent?

    Thank for your help
    Last edited by pete1980; 05-14-2020 at 04:35 PM.

  9. #9
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    sorry disregard this post
    Last edited by pete1980; 05-14-2020 at 04:36 PM.

  10. #10
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: After select one value from list jump into specific cell for mandatory input

    It seems that when macro errors after events are disabled, excel doesn't automatically re-enable them like it does with screen updating. As a 'fix', I've added a simple error trapping routine, but if events are disabled in another macro, it disables events throughout the entire application (any and all opened workbooks during the duration of the application) until they are again enabled. I also posted two simple routines the enable and disable some application setting to help speed up subroutines. I keep them in my personal.xlsb workbook and add them to the quick access toolbar. The Enable macro will enable the events.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    I will definitely check your code.
    Additional question. Is it possible to add also an message like the pop up warning that the user is aware that he needs to enter the value first in the cell where is routed to?

    Thank you so much.

  12. #12
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: After select one value from list jump into specific cell for mandatory input

    Try this
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    Awesome you are the man!
    Thank you so much for the support! Really appreciate your help.

  14. #14
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,278

    Re: After select one value from list jump into specific cell for mandatory input

    Glad to help!

  15. #15
    Registered User
    Join Date
    05-13-2020
    Location
    CHS, USA
    MS-Off Ver
    office 2016
    Posts
    9

    Re: After select one value from list jump into specific cell for mandatory input

    Hi dangelor,
    hope you can help one more time.
    I'm getting actually following error when i'm starting my list from scratch. I deleted all content to prepare that list for using. It looks like the list needs to have at least one 'Released' value. But it might take few days before that happen and we still want to use that list.
    The error disappear once i'm selecting the value 'Released' at least once.

    Greetz

    Attachment 679558

+ 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] Make column cell input mandatory if initial cell has input
    By Joceau in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-28-2017, 03:46 AM
  2. Make multiple cell input mandatory if initial cell has input.
    By dwporter in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-23-2017, 08:06 PM
  3. Mandatory Cell Input
    By red1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2016, 11:16 AM
  4. [SOLVED] Mandatory Input based on another cell
    By gaker10 in forum Excel General
    Replies: 1
    Last Post: 07-31-2015, 03:14 PM
  5. Formula to select specific numbers from a cell and input into another cell
    By highrankednoob in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-12-2013, 06:28 PM
  6. Replies: 14
    Last Post: 01-22-2013, 12:07 PM
  7. Mandatory cell input with drop down menue
    By Hermann3 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-10-2012, 04:57 AM

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