+ Reply to Thread
Results 1 to 3 of 3

Why is my VBA code not appending data but instead replacing data in the workbook?

  1. #1
    Registered User
    Join Date
    03-24-2020
    Location
    houston
    MS-Off Ver
    2016
    Posts
    1

    Post Why is my VBA code not appending data but instead replacing data in the workbook?

    Please Login or Register  to view this content.
    This code replaces data in columns E and F of destination workbook, but i want it to append to it. Please help.
    Last edited by alansidman; 03-24-2020 at 07:56 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,047

    Re: Why is my VBA code not appending data but instead replacing data in the workbook?

    This gets the next empty row from column A of the Destination worksheet. Change the 1 to a 5 to get the next empty row in column E.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    18,266

    Re: Why is my VBA code not appending data but instead replacing data in the workbook?

    @satvikzwarrior

    Code Tags Added
    Your post does not comply with Rule 2 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.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

+ 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. Appending Workbook data to a Master Workbook - additional logic needed
    By ajhardma in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-12-2015, 01:50 AM
  2. Replies: 0
    Last Post: 04-19-2013, 05:50 PM
  3. [SOLVED] VBA code not replacing existing data?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-07-2013, 04:47 PM
  4. Replacing the existing Data of workbooks on splitting Data in a Master workbook
    By anchuri_chaitanya in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-04-2012, 11:59 AM
  5. Changing VBA code to return data range, appending to prior data
    By camcrazy08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2007, 10:53 AM
  6. copying data from one workbook and appending it to another
    By meacho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-02-2007, 10:06 AM
  7. Replies: 1
    Last Post: 09-08-2005, 04:05 PM

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