Results 1 to 2 of 2

Excel 2010: Dropdown list with user input after

Threaded View

  1. #2
    Forum Contributor
    Join Date
    08-29-2012
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    103

    Re: Excel 2010: Dropdown list with user input after

    Alright, was much easier than I thought, but getting a ton of problems...

    If Not Intersect(Target, Range("BJ77:BJ113")) Is Nothing Then
        'On Error Resume Next
        If Target.Value = "Craftsman" Then
        Sheet1.Range(Target.Address) = "Craft: " & InputBox(Prompt:="Enter Craft:", Title:="CRAFT NAME", Default:="")
        End If
        'On Error Goto 0
    End If
    In theory, this should check if boxes BJ77 through BJ113 have the word Craftsman, and if so put up an InputBox where the user can input a value and press Enter and the box with the change will be changed to show Craft: User Input. What happens with the On Errors active is an endless loop each and every time I type anything in boxes BJ77 to BJ113. Without the On Error, it will work as intended unless I type in Craftsman and then backspace it, or backspace any text I typed in any boxes, at which point I get a Run-time error '13': Type mismatch. I'm not sure what the problem is here; obviously it's a type-mismatch based on a "" value, but that doesn't make any sense to me why this should be happening!

    EDIT: It would seem 10th tries a charm with Google. I just had to search for the right criteria I guess.

    I had to include this before my "If" statement, and remove my On Errors:

        If Target.Count > 1 Then Exit Sub
    Last edited by Taemex; 03-17-2014 at 01:02 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 12-06-2012, 05:52 PM
  2. Need Help with writingg/editing VBA for User drop down List in Excel 2010
    By powella9 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 02:20 PM
  3. User Input Box as Dropdown
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-24-2010, 03:11 PM
  4. [SOLVED] Make input in one column determine dropdown list in another.
    By gettin-older in forum Excel General
    Replies: 4
    Last Post: 11-13-2005, 06:45 PM
  5. [SOLVED] How to make an input in one column determine dropdown list in anot
    By gettin-older in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-13-2005, 05:40 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