+ Reply to Thread
Results 1 to 14 of 14

Problem code tranfer data from userform to sheet2

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Problem code tranfer data from userform to sheet2

    HI GUYS
    when i transfer data from userform to sheet2 it begins in row136 not row2 i no know why
    [ATTACH]626972
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Problem code tranfer data from userform to sheet2

    I suspect you had something in A136 initially.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: Problem code tranfer data from userform to sheet2

    This problem occurs only when I choose a ready-made table form from a design exel .
    When I design the table myself, the posting is done normally

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Problem code tranfer data from userform to sheet2

    So why post a workbook that doesn't have a Table in it?

    If you have a table, you should be using the ListObject.Listrows.add method to add your data, and not creating a table with a load of blank rows already in it. The End(xlup) will stop at the bottom of your table regardless of whether the last row has anything in it.

  5. #5
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: Problem code tranfer data from userform to sheet2

    can you see my attached file and changed my code because i am new in vba if you don't mind

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Problem code tranfer data from userform to sheet2

    Does your real file have a table in it?

  7. #7
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: Problem code tranfer data from userform to sheet2

    Yes, i have a simple table

  8. #8
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Problem code tranfer data from userform to sheet2

    Then you might use something like this:

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: Problem code tranfer data from userform to sheet2

    actually , i appreciate your efforts but , still the code works from row136???

  10. #10
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,979

    Re: Problem code tranfer data from userform to sheet2

    Your table should not have any blank rows in it. The code will add rows to the table as needed.

  11. #11
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: Problem code tranfer data from userform to sheet2

    but, in the beginning it must be the table is blank to fill datas in rows

  12. #12
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Problem code tranfer data from userform to sheet2

    Working example.
    You start with the first table row (this is row 3 in your excel file),the table will do the rest.
    Don't add frames,colors,rows... The table does this itself
    To use my posting code, look at the textbox names.
    Attached Files Attached Files
    Click the * Add Reputation below to say thanks.

  13. #13
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    758

    Re: Problem code tranfer data from userform to sheet2

    thanks now it does work

  14. #14
    Registered User
    Join Date
    09-16-2017
    Location
    Agra
    MS-Off Ver
    2013
    Posts
    72

    Re: Problem code tranfer data from userform to sheet2

    Please mark as solved ...thnx

+ 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] Data entered from Userform Textbox shoud be in sheet2 z5
    By Akbarov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-01-2018, 06:24 AM
  2. [SOLVED] Tranfer data from userform to a sheet
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-11-2014, 11:24 AM
  3. Entering data with UserForm in to Sheet2
    By lapot in forum Excel General
    Replies: 3
    Last Post: 07-23-2014, 05:05 AM
  4. [SOLVED] copy over data from userform to sheet2
    By mak_pj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-26-2013, 05:52 PM
  5. [SOLVED] Problem to tranfer userform's data in a specific sheet
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 11-25-2013, 01:13 PM
  6. [SOLVED] Saving textbox data from a userform to Sheet2 cells...
    By goldbeje in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-04-2012, 04:32 PM
  7. [SOLVED] Userform Data pull up not retriving data from Sheet2
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 08-28-2012, 08:24 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