+ Reply to Thread
Results 1 to 5 of 5

Userform entry point on a sheet

Hybrid View

scross Userform entry point on a... 09-11-2018, 09:01 PM
BadlySpelledBuoy Re: Userform entry point on a... 09-12-2018, 02:44 AM
scross Re: Userform entry point on a... 09-12-2018, 07:39 PM
Fotis1991 Re: Userform entry point on a... 09-12-2018, 03:44 AM
scross Re: Userform entry point on a... 09-12-2018, 07:40 PM
  1. #1
    Registered User
    Join Date
    01-15-2018
    Location
    New Zeland
    MS-Off Ver
    2016 Professional Plus
    Posts
    23

    Userform entry point on a sheet

    Hello,

    Sheet 1 contains all possible people, their code and their details.
    A UserForm has buttons allowing letters to be entered into column D on the active sheet.
    When the digits entered match a code from Sheet one that persons details are displayed on both the Userform and active sheet.
    This is done with a Match formula.
    The Userform has a confirm button if the user is happy the correct code was entered.

    Ideally this would move down a row in column D on the active sheet ready form the next code to be entered and the fields on the UserForm would be blanks awaiting the next matched code.

    Try as I might I can't get this last part to work.
    I can only get the it to work if I explicitly say enter the code into this cell on this Sheet.

    Private Sub CommandButtonA_Click()
    Me.TextBoxCode = Me.TextBoxCode & "A"
    Sheet2.Range("D2") = Me.TextBoxCode.Text
    Me.TextBoxFirstName.Text = Sheet2.Range("I2")
    Me.TextBoxLastName.Text = Sheet2.Range("K2")
    If Me.TextBoxFirstName.Text = "" Then
    Me.TextBoxPlacing.Text = ""
    Else
    Me.TextBoxPlacing.Text = Sheet2.Range("B2")
    End If
    End Sub
    Any help with this would be greatly appreciated.
    Thank you
    Last edited by scross; 09-12-2018 at 07:39 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,959

    Re: Userform entry point on a sheet

    First off, as per forum rules you'll need to edit your first post to wrap your code in tags.

    Second, it would be easier to assist if we can see the issue in context, so attach the workbook (desensitized if necessary) and we can go from there.

    BSB

  3. #3
    Registered User
    Join Date
    01-15-2018
    Location
    New Zeland
    MS-Off Ver
    2016 Professional Plus
    Posts
    23

    Re: Userform entry point on a sheet

    Apologies.
    I now understand about the code tag thank you.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Userform entry point on a sheet

    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE] [/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 6)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    01-15-2018
    Location
    New Zeland
    MS-Off Ver
    2016 Professional Plus
    Posts
    23

    Re: Userform entry point on a sheet

    Apologies.
    Thank you for the instructions on adding the code tags.

+ 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] Time sheet with userform as data entry
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-31-2015, 11:44 AM
  2. [SOLVED] Search sheet by inputbox entry from userform, multiple results
    By skbreen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-15-2013, 09:06 AM
  3. [SOLVED] Userform for date entry and then copy/paste matching data to another sheet
    By nymanns in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 03:22 AM
  4. Creating Data Entry MIS in Excel Sheet without an Userform
    By sumit dey in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-12-2013, 04:01 AM
  5. data entry to multy sheet using userform
    By semeer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-29-2013, 04:44 AM
  6. userform duplicate entry check writing to sheet
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2013, 06:21 AM
  7. [SOLVED] Sheet Protect after Data entry by userform
    By sa.1985 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-03-2012, 04:52 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