+ Reply to Thread
Results 1 to 8 of 8

Data Validation scuppering macro

  1. #1
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Data Validation scuppering macro

    hi folks,

    i am working on providing a VBA-based solution for this thread:

    http://www.excelforum.com/showthread...=1#post2868374

    i hit upon an issue which i am just not able to figure out how to solve.

    the spreadsheet has a column of Data Validation cells (column F). if i were to type a value in every cell along a row and hit TAB (or the arrow keys), as soon as i reach column F, excel craps out. i have pop-up messages about "not enough resources" and i have no option but to End Task excel through Task Manager.

    i do not have this experience if i hit enter after entering values, just when TAB or arrow keys.

    please see if you can help. if you update the original thread, that would be great, too.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259

    Re: Data Validation scuppering macro

    Hello icestationzbra ,

    You should also include a link to this post in your post in the General forum and attach a copy of the latest workbook to this thread.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Data Validation scuppering macro

    leith, here you go...
    Attached Files Attached Files

  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: Data Validation scuppering macro

    When writing into a sheet where a Worksheet_Change macro is triggered by such actions, be sure to turn off events so as to no self-trigger. Maybe these suggested changes, this version will work even if multiple cells are changed at once, as might happen with a copy/paste:

    Please Login or Register  to view this content.
    _________________
    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!)

  5. #5
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Data Validation scuppering macro

    hi jerry,

    thank you very much - i have tested and this code seems to have fixed the problem. i really appreciate your help.

    i will pass this onto the original OP and just let the OP test once or twice to see that everything is working fine at their end, too.

    best regards.
    Last edited by icestationzbra; 07-24-2012 at 10:01 AM.

  6. #6
    Registered User
    Join Date
    07-22-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Data Validation scuppering macro

    Hello icestationzbra,
    Thank you very much for working on this issue.

    I did save the file as you requested but it is still not working...

  7. #7
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Data Validation scuppering macro

    rmcc, please switch to your original thread...

  8. #8
    Registered User
    Join Date
    07-22-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: Data Validation scuppering macro

    Thank you icestationzbra, I did switch to the original thread

+ 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