+ Reply to Thread
Results 1 to 4 of 4

Creating a Loop to check multiple textboxes and comobox

  1. #1
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    168

    Creating a Loop to check multiple textboxes and comobox

    Hi all,

    I have a code which checks if the contents of a combobox match a textbox, if so, it checks to see if another text box is empty, and return a warning if it is. I have got this to work by creating IF statements for each individual check but thought there must be an easier way to do it using loops but have not been able to work out how to do it. My code is below, there are 8 textboxes in the first critera, and another 8 in the second, if combobox equals textbox 1 it checks textbox 9, if it equals textbox 2 it checks textbox 10 and so on, up to checking textbox 8 to check textbox 16 (as 1-8 is the first criteria and 9-16 is the second).

    Any help would be greatly appreciated.

    Please Login or Register  to view this content.
    Excel Beginner

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Creating a Loop to check multiple textboxes and comobox

    How about
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    08-14-2016
    Location
    Warrington, England
    MS-Off Ver
    MS 365
    Posts
    168

    Re: Creating a Loop to check multiple textboxes and comobox

    Hi Fluff, that worked perfectly, thank you! Rep added and marked thread as solved.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Creating a Loop to check multiple textboxes and comobox

    You're welcome & thanks for the feedback

+ 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] Creating loop check cell value if so copy some cells to a external program
    By dutchmaste in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-04-2017, 05:54 AM
  2. Replies: 5
    Last Post: 12-07-2016, 07:41 AM
  3. Userform to check 2 textboxes for duplicate & date check
    By LadyAlina in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2015, 09:26 AM
  4. [SOLVED] Multiple With command or creating a loop for it
    By navwelch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 04:31 AM
  5. [SOLVED] UserForm Auto Check check boxes if TextBoxes are not empies
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2013, 11:36 AM
  6. Creating loop to apply to multiple textboxes
    By acwhite42 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-04-2013, 11:53 AM
  7. Please help quick, check multiple textboxes.
    By Robomanrob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-18-2013, 09:26 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