+ Reply to Thread
Results 1 to 2 of 2

Select Autofilter then copy paste

  1. #1
    Registered User
    Join Date
    10-19-2008
    Location
    UK
    Posts
    63

    Select Autofilter then copy paste

    Hi,

    Starting from a workbook BookData.xls I need to go into a s/s in workbook BookFilter.xls (see attached) select the autofilter (called Datemonth), select a date then copy data and paste it into workbook BookData.xls in Sheet1.

    I have the code below:
    Please Login or Register  to view this content.
    This is what is really strange.
    If the criteria in autofilter is a text example A or B the macro works but If the criteria in autofilter is a date eg. 04-Sep-12 then it does not work.
    Any idea why this is the case and what I should do to make the Macro work?


    Thanks,
    Nix
    Attached Files Attached Files
    Last edited by nicolaforni; 09-21-2012 at 01:27 PM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Select Autofilter then copy paste

    Hi, nicolaforni,

    convert the Date to a long:

    Please Login or Register  to view this content.
    The other workbook needs to be opened in the same instance, try it like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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