+ Reply to Thread
Results 1 to 4 of 4

Excel VBA- copy data from userform to sheet 1 with a new row each time

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Excel VBA- copy data from userform to sheet 1 with a new row each time

    I have very limited experieince with Excel VBA. Please tell me how to write code to take data entered into Userform Inventory and place it into Sheet 1 on a new row each time after the record has been saved.

    txtMaterial starts on column A2
    txtBin starts on column B2
    txtIssued starts on column C2
    txtReceived starts on column D2
    cboDepartment starts on column F2
    txtRecipient starts on column G2
    txtFaics starts on column H2
    cboInitials starts on column I2

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Excel VBA- copy data from userform to sheet 1 with a new row each time

    Hi,

    Please Login or Register  to view this content.
    Regards

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Excel VBA- copy data from userform to sheet 1 with a new row each time

    What did I do wrong? The record went to line 326, the first available line was line 2.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Excel VBA- copy data from userform to sheet 1 with a new row each time

    Hi,

    most probably because your worksheet contains empty ending blank cells where the contents were removed instead of entire rows.
    Remove those rows or use:
    Please Login or Register  to view this content.
    instead of
    Please Login or Register  to view this content.
    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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