+ Reply to Thread
Results 1 to 3 of 3

Using AdvancedFilter to overwrite data

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Using AdvancedFilter to overwrite data

    I'm using AdvancedFilter in a macro to copy unique values from one source worksheet to another destination worksheet. This works fine when the destination has no data in it, but not when I need to run the macro and update the data in the destination whenever the source changes. The number of rows in the source will vary but is over 130k rows.

    Is there a way to perform this and overwrite the destination data?

    The code I'm using:
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Using AdvancedFilter to overwrite data

    What's the problem when you try and overwrite?
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Using AdvancedFilter to overwrite data

    Running the Macro from the worksheet gives the 400 Error. Stepping through the macro in the VB editor I get "Run-time error '1004': Application-defined or object-defined error" when executing the AdvancedFilter line. It works without a problem if I clear the destination first.

+ 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. Data for AdvancedFilter Format
    By etaver87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2016, 06:39 PM
  2. MACRO to split new data into multiple tabs but not overwrite existing data
    By amo899115 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-11-2016, 01:42 PM
  3. [SOLVED] Userform: Retrieve data from excel sheet and overwrite with new data in the same rows
    By Pbawal in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-09-2014, 11:49 AM
  4. using range.advancedfilter to copy data into a list object
    By mtnbiker98 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-28-2013, 02:58 PM
  5. Split data from Master Sheet to existing worksheets and overwrite data
    By vmwest in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-21-2013, 05:36 PM
  6. [SOLVED] Macro with "save as" --- Need excel to overwrite a file without a prompt to overwrite
    By tsmith1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2012, 10:54 AM
  7. Prevent data cell overwrite but allow blank cell overwrite
    By Squasher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2011, 09:24 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