+ Reply to Thread
Results 1 to 4 of 4

Can't Retrieve Value from UserForm Textbox

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    East Lansing
    MS-Off Ver
    2010
    Posts
    20

    Can't Retrieve Value from UserForm Textbox

    For some reason, even when I put values of 3, 7, 11, etc into userform3 textbox2, there is always an error (always shows userform5). What am I doing wrong? Thanks in advance

    Please Login or Register  to view this content.
    EDIT: I've narrowed it down to a problem pulling the value from userform3 textbox2 because when I replace that in the code with the number directly it works as intended. So why can't it read the value from this userform?
    Last edited by TheSpriceEffect; 07-18-2014 at 01:49 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Can't Retrieve Value from UserForm Textbox

    Hi

    I take it GoodNumbers is an array.

    Match is to my knowledge only used in cells in a workbook.

    I think that you have to loop through every entry in your array and test for a match.

    So you need to either put your data into a worksheet or loop through your array.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Can't Retrieve Value from UserForm Textbox

    You might want to start debugging to see where the issue is. Without a copy of your workbook that is all we will probably be able to do for you at this point:

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-03-2014
    Location
    East Lansing
    MS-Off Ver
    2010
    Posts
    20

    Re: Can't Retrieve Value from UserForm Textbox

    Figured it out. The problem was that I had another userform with a "textbox2"

+ 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] Error 2042 using Application.Match to add item and update combobox list
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2013, 07:55 AM
  2. [SOLVED] Application.Match returns Error 2042 whene text absolutely does exist?
    By Rhudi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 04:21 PM
  3. Error 2042 with Application.Match
    By mgurren in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2013, 02:15 AM
  4. Application.Worksheetfunction.match ERROR
    By Guido Meng in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 01:27 PM
  5. Object Required error on Application.Match function.
    By ctckark1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-12-2011, 11:01 AM

Tags for this Thread

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