Consulting

Results 1 to 3 of 3

Thread: 3 cells USERFORM to enroll in one cell in excel

  1. #1
    VBAX Tutor
    Joined
    Sep 2012
    Location
    London
    Posts
    263
    Location

    3 cells USERFORM to enroll in one cell in excel

    Hi if you could help me to Complete the code 3 cells USERFORM to enroll in one cell in excel.
    Call button in excel UserForm.
    Cancel - button works
    ADD - button -> pressed it to my cell transfer in anything written. For example, if a cell is a UserForm is not written, then in excel cell carries the rest.
    I will attach the excel file and image to be seen.
    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,890
    You don't say which cell to use for the destination on the sheet, nor do you say which 3 of the 4 textboxes you want to use, so I've guessed:[VBA]Private Sub CommandButton1_Click()
    With ActiveSheet
    .Cells(.Rows.Count, "A").End(xlUp).Offset(1).Value = Application.Trim(Join(Array(TextBox1.Text, Me.TextBox2.Text, Me.TextBox3.Text)))
    End With
    End Sub
    [/VBA]
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    VBAX Tutor
    Joined
    Sep 2012
    Location
    London
    Posts
    263
    Location
    Hello p45cal, I was so tired that she had a typo when writing. Do not worry, I have set the column and I type the 4 cell.
    Many thanks for the quick response from your side.
    Be alive and well.
    Рegards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •