+ Reply to Thread
Results 1 to 6 of 6

I cant recognise a specific letter in order to activate 2 combo boxes

  1. #1
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    I cant recognise a specific letter in order to activate 2 combo boxes

    Hi,

    I need to introduce a new Textbox7 which will carry a 20 digit code. Of that code, I need the code to recognise the 3rd letter. If the letter is "A" then
    this would activate combobox1 and combobox2 "C03000"
    The "B" would do the same but equal - "BRCKT016"
    The "C" would do the same but equal - "C05001"
    The "D" would do the same but equal - "BRCKT044"

    Any ideas???????

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: I cant recognise a specific letter in order to activate 2 combo boxes

    You may use a Select Case clause

    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: I cant recognise a specific letter in order to activate 2 combo boxes

    thanks, I'll give it a whirl

  4. #4
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: I cant recognise a specific letter in order to activate 2 combo boxes

    mismatch error, give it a whirl
    Attached Files Attached Files

  5. #5
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: I cant recognise a specific letter in order to activate 2 combo boxes

    That is due to the change event of Combobox1. When it attempts to run this line
    Please Login or Register  to view this content.
    textbox1 is empty.

    I do not know what the workflow is intended to be so I cannot suggest the best resolution, but your change event should be testing for an empty or non-numeric value in that textbox at the very least.

  6. #6
    Forum Contributor
    Join Date
    07-05-2016
    Location
    cardiff
    MS-Off Ver
    2010
    Posts
    787

    Re: I cant recognise a specific letter in order to activate 2 combo boxes

    ah yes, fill in OHF, MBC and beam length and it works fine , thank you

+ 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] Clear all text boxes-combo boxes in a userform.
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2014, 11:16 AM
  2. [SOLVED] Help with code for userform text boxes, combo boxes and excel
    By innerise in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 09:07 AM
  3. populating list boxes and combo boxes in a user form.
    By ahceinaej in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:54 AM
  4. [SOLVED]Order Code has 1 letter added need function to delete said letter
    By king10001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-23-2013, 01:25 PM
  5. Replies: 1
    Last Post: 12-03-2012, 08:55 AM
  6. assigning data to lists boxes and combo boxes in userforms
    By weston.roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2011, 03:11 AM
  7. assigning data to lists boxes and combo boxes in userforms
    By weston.roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2011, 08:46 PM
  8. [SOLVED] Selecting subsets using combo boxes or list boxes
    By CLamar in forum Excel General
    Replies: 0
    Last Post: 06-01-2006, 02:45 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