+ Reply to Thread
Results 1 to 3 of 3

User data entered from userform

  1. #1
    Registered User
    Join Date
    01-21-2019
    Location
    Australia
    MS-Off Ver
    Office 2018
    Posts
    35

    User data entered from userform

    I am relatively new to VBA but have some slight experience with other programming languages. I am attempting to create a user form that searches a table for data entries that meets 4 criteria. As to only tackle one issue at a time, I am just trying to get the program to print a "1" in the cells corresponding to the matching data. The code works if the criteria values are taken from a cell within the sheet and then assigned, but I cant seem to get it to work straight from the text box. That is in the following code, if I define each "SG", "ST", "SL" and "SW" through using Range("Cell").Value the code works, but if define each of these through TextBox.Value or TextBox.Text in the resulting code nothing will happen. Is their something wrong with defining terms this way? As well as is there any easier way to achieve a way of searching data with multiple criteria?

    Please Login or Register  to view this content.
    Last edited by Jaredm577; 01-21-2019 at 06:03 PM.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: User data entered from userform

    Quote Originally Posted by Jaredm577 View Post
    ... if define each of these through TextBox.Value or TextBox.Text in the resulting code nothing will happen.
    ... is there any easier way to achieve a way of searching data with multiple criteria?
    Welcome to the forum,

    Create an index from SG, ST, SL, SW to search for a string of data values, e.g.:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-21-2019
    Location
    Australia
    MS-Off Ver
    Office 2018
    Posts
    35

    Red face Re: User data entered from userform

    Thank you so much! Pretty much just dropped this in and it works perfectly! Thank you again for such a quick reply.

+ 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] Retrieval of data entered in Userform after Userform is closed
    By rpcoates1956 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2017, 04:10 PM
  2. [SOLVED] Information from userform overwriting data previously entered by same userform
    By ciresuark in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-20-2015, 02:10 PM
  3. [SOLVED] Allow users to enter data but prevent user from deleting data once entered
    By Chgardne in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-08-2014, 03:58 AM
  4. Sum 2 textboxes on user form to 3rd when data entered
    By edopts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2014, 04:04 PM
  5. Locking cell after user has entered data using VBA
    By milo1984 in forum Excel General
    Replies: 5
    Last Post: 11-27-2013, 09:39 AM
  6. Open a excel userform with values previously entered by user using VBA
    By anuraag1 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-17-2013, 07:02 AM
  7. User form don't write if no data is entered
    By nods in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2010, 12:37 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