+ Reply to Thread
Results 1 to 4 of 4

VBA code to copy line items from form - overriding previous line item

  1. #1
    Registered User
    Join Date
    11-29-2016
    Location
    Virginia, United States
    MS-Off Ver
    Microsoft Office 2010
    Posts
    2

    VBA code to copy line items from form - overriding previous line item

    please delete thread
    Last edited by dkostyan; 11-30-2016 at 04:06 PM.

  2. #2
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394
    Should'nt you use numofrows instead of rowcount in the second macro?

  3. #3
    Registered User
    Join Date
    11-29-2016
    Location
    Virginia, United States
    MS-Off Ver
    Microsoft Office 2010
    Posts
    2

    Re: VBA code to copy line items from form - overriding previous line item

    Thank you for your response. I'm not sure what you mean because I'm very new to this. I tried doing what you suggested and got an error message.


    What in my code is making it so that each new entry overrides the previous? What exactly does RowCount do that's different than numofrows?

    Any help is greatly appreciated.

    Thank you
    Last edited by dkostyan; 11-30-2016 at 11:18 AM.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,858

    Re: VBA code to copy line items from form - overriding previous line item

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Insert line and copy data of previous line with certain changes
    By vijayca in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-22-2016, 07:19 AM
  2. Replies: 9
    Last Post: 12-28-2015, 01:38 PM
  3. deleting a line based on data in a previous line
    By El Conquistador in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-30-2013, 09:49 AM
  4. [SOLVED] Moving Contents of Line to End of Previous Line in Word 2010 doc
    By staggers47 in forum Word Formatting & General
    Replies: 4
    Last Post: 12-15-2012, 09:17 AM
  5. Replies: 0
    Last Post: 09-26-2012, 11:26 AM
  6. Combining multiple line items into one line item based on column.
    By mguz018 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-20-2012, 07:22 PM
  7. Macro problem on, Yellowed line - previous line or next line.
    By Ed in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-29-2005, 07:06 PM

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