+ Reply to Thread
Results 1 to 11 of 11

Copying data not working

  1. #1
    Registered User
    Join Date
    10-30-2019
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    62

    Copying data not working

    i'm having problem with this code, because if i copy paste straight to the sheet and use the form to fill in the data, but it doesn't paste the data below.

    as you can see the test and the data doesn't paste below it.

    Capture.PNG

    Please Login or Register  to view this content.
    Last edited by noelcjf; 03-27-2024 at 11:26 PM.

  2. #2
    Registered User
    Join Date
    03-21-2024
    Location
    washinton dc ,US
    MS-Off Ver
    Washington DC
    Posts
    3

    Re: Copying data not working

    hii
    i am glad to help you. check the code ensure that it was correctly identifies that last row data is present and than paste new data .first you want check your code that right or wrong. if right then do other process
    Stock James
    THANKS

  3. #3
    Registered User
    Join Date
    10-30-2019
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    62

    Re: Copying data not working

    it work properly when the sheet is empty, if i paste the old data in and fill in the form then i check back, but it still doesn't paste to the next empty row
    Last edited by AliGW; 03-28-2024 at 03:02 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Copying data not working

    Step debug the code.
    While you are in vbe:

    Click somewhere on the code and hit F8.
    As you hit F8, the code executes one line.

    Keep doing until you pass the line of
    Please Login or Register  to view this content.
    Then you can hover the cursor over to variable iRow(not click) and see what value it is.
    If the formula in B:AD is not resulting "", it counts it.

    Anyway, better upload a workbook.

  5. #5
    Registered User
    Join Date
    10-30-2019
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    62

    Re: Copying data not working

    iRow = 0 is shown when i hover to iRow
    Last edited by AliGW; 03-28-2024 at 03:02 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Copying data not working

    Are you sure you past that line?
    0 is not possible.

    Do you have On Error Resume Next in the top of the code?
    If so, you will need to delete that line.

  7. #7
    Registered User
    Join Date
    10-30-2019
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    62

    Re: Copying data not working

    iRow = 65460 as shown after i pass it

    sorry i stop at iRow thats why
    Last edited by AliGW; 03-28-2024 at 03:44 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Copying data not working

    OK, then I need to see the formula.

    It is not returning "".

  9. #9
    Registered User
    Join Date
    10-30-2019
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    62
    Quote Originally Posted by jindon View Post
    OK, then I need to see the formula.

    It is not returning "".
    I fixed it and thank you for your help!

  10. #10
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Copying data not working

    You are welcome, and glad you fixed it.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  11. #11
    Registered User
    Join Date
    10-30-2019
    Location
    singapore
    MS-Off Ver
    2010
    Posts
    62

    Re: Copying data not working

    Quote Originally Posted by jindon View Post
    You are welcome, and glad you fixed it.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    i knew this reputation system

+ 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. VBA is not working while copying data
    By kumar79 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2023, 12:44 PM
  2. Copying formulas not working
    By Ron Purpura in forum Excel General
    Replies: 3
    Last Post: 07-08-2022, 01:12 PM
  3. [SOLVED] Copying between workbooks not working
    By Frenzyy in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-07-2020, 09:50 AM
  4. [SOLVED] Copying data from one sheet to another, VBA code not working
    By scokaw in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2013, 08:02 PM
  5. [SOLVED] Copying Filtered Data From 2 Sheets of One Workbook to Another Isn't Working Correctly
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2012, 06:30 PM
  6. Adjusted code for copying data not working
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2009, 01:00 PM
  7. Macro copying row not working
    By kossdust in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-30-2007, 11:04 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