+ Reply to Thread
Results 1 to 3 of 3

Code Issues: Validation Code does not register new entry until it is ran once

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Code Issues: Validation Code does not register new entry until it is ran once

    I have the following code which creates a validation in cell E12 of a worksheet.

    Please Login or Register  to view this content.
    My problem is I use a Userform to create new rows from the list it is pulling in. When I use the userform to enter a new row in the datasheet it is not pulling the newly entered row (cell A of the row) into the validation until I run the validation one time then when I open up the dropdown list the new entry will be there.

    Any inclination of why this is?

    thanks for any help

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Code Issues: Validation Code does not register new entry until it is ran once

    Can you set the validation in your UserForm?
    The worksheet_Change event will only kick in when you change E12

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Code Issues: Validation Code does not register new entry until it is ran once

    Dave,

    I will try my best to explain. The userform say "Userform1" for the sake of discussion is used to populate data in a background spreadsheet called "Variance Database" (as referred to in the code). The validation itself is on a separate worksheet called "Report" which is a custom report which uses VLookups of the "Variance Database" based upon the E12 value. So if you can picture it when E12 changes the whole report changes. So I would be inclined to say that the validation is an independent function of the userform.

    I would like to inquire if there is any loop hole. Say when you click on the validation it changes real quick without the user recognizing or when the worksheet itself is activated it changes or any kind of technique like that?

+ 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] VBA Code to select each item in turn from a validation list and then run some other code
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-21-2014, 12:54 PM
  2. [SOLVED] Macro in Validation List - Code Issues
    By Pony08 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2013, 11:03 AM
  3. Replies: 0
    Last Post: 11-27-2012, 03:54 PM
  4. select mo/yr w/data validation list, insert celll entry into vba file reference code
    By ShannonHowell in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-10-2011, 04:07 AM
  5. Risk Issues register
    By sacrum in forum Excel General
    Replies: 4
    Last Post: 01-19-2006, 08:35 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