+ Reply to Thread
Results 1 to 5 of 5

Issue when copying filtered data from 2 workbooks

  1. #1
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Issue when copying filtered data from 2 workbooks

    Hi,

    I am trying to copy filtered data from 2 different workbooks in one worksheet. I have a Wb for this year and another for last year. When copying filtered data from last year and this year, it copies only
    the data from this year.

    Please Login or Register  to view this content.
    When I change Wb1 to ThisWorkbook ( meaning Wb1 and Wb2 are identical), it works ,it copies the data twice

    What's wrong with my code?

    Thank you,

    Daniel

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Issue when copying filtered data from 2 workbooks

    Would you not require the extension for the workbook name as well?

  3. #3
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180
    Quote Originally Posted by davesexcel View Post
    Would you not require the extension for the workbook name as well?
    Sorry, of course, in my code there is the extension
    By copying, I forgot it.
    The file opens, meaning that this is not the issue

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475

    Re: Issue when copying filtered data from 2 workbooks

    By copying, I forgot it.
    What do you mean?

    Did you copy and paste the code or retype it?

  5. #5
    Forum Contributor
    Join Date
    10-02-2021
    Location
    Belgium
    MS-Off Ver
    Excel 2019
    Posts
    180

    Re: Issue when copying filtered data from 2 workbooks

    I copied the code but I changed the name of the xlsm file.

+ 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 programming issue when data is filtered
    By Ianmacros in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-01-2019, 04:59 PM
  2. [SOLVED] Copying Filtered Data
    By trisoldee in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-01-2016, 10:57 AM
  3. [SOLVED] Issue copying and pasting large data from separate workbooks into a new workbook
    By davo52 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-11-2014, 10:03 AM
  4. [SOLVED] Excel VBA - Issue in Naming Filtered Range on a Filtered List.
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-06-2014, 01:17 PM
  5. Replies: 1
    Last Post: 10-10-2012, 10:23 AM
  6. Copying Filtered Data
    By Shirley Munro in forum Excel General
    Replies: 1
    Last Post: 06-22-2005, 09:05 PM
  7. [SOLVED] Copying filtered data
    By cghall55 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-11-2005, 01: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