+ Reply to Thread
Results 1 to 3 of 3

Userform transfer data into worksheet

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Userform transfer data into worksheet

    Hi, I'm not sure how to explain this in writing.

    What I have is a file for new customer entry, with order quantity entry.

    Textbox1.text would go to the next blank cell in column A, resize 5rows
    Textbox3.text would be entered on the next blank cell on column C
    Then textbox4.text on Column C still
    textbox5.text
    and so on.

    I was hoping to use something similar the below code. i've tried but it kept replacing just one row.

    For i = 2 to 5
    With sheets1
    .cells(lastrow,"C").value = me.controls("Textbox"&i).text
    end with
    Next i

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Userform transfer data into worksheet

    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-31-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Userform transfer data into worksheet

    Thank you so much! Works perfectly!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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