+ Reply to Thread
Results 1 to 3 of 3

2 Workbooks, a Macro and a little filter!

Hybrid View

  1. #1
    Registered User
    Join Date
    06-16-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question 2 Workbooks, a Macro and a little filter!

    Hi,

    I am far from advanced in excel, but I have been tasked with creating a macro which includes filtering.

    1) I have a workbook called Workbook1
    2) I need to copy Sheet 3 from Workbook1 cells A1-J5000 into a new workbook called Master.
    3) Column D is labelled Status and the two statuses are Enabled and Disabled.
    4) I need to copy anything labelled Enabled to a new worksheet in the workbook already created called Enabled and then the same for Disabled. I then need to put it into date order which is column F labelled Date.

    I have been trying to work on this all morning, but have found that Excel doesn't like Macros with filters and I don't know the first thing about VBA. Any help anyone can give me would be great. Thank you in advance.

  2. #2
    Registered User
    Join Date
    06-16-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: 2 Workbooks, a Macro and a little filter!

    Sorry it's not letting me edit the title. Should be something like Using filters within Macros.

  3. #3
    Forum Contributor
    Join Date
    02-23-2006
    Location
    Near London, England
    MS-Off Ver
    Office 2003
    Posts
    770

    Post Re: 2 Workbooks, a Macro and a little filter!

    Amanda,

    Please see the attached. You will need to unzip it to a folder.
    The 'Master.xls' workbook contains the macro, and the workbook1.xls is just some sample data I made up according to your formatting instructions above.
    I've put comments in the code so that you can hopefully see what each section is doing, but if you have any comments or questions about it feel free to paste the section of code into this thread, (don't forget the code tags ), and I'll try to explain it more
    Attached Files Attached Files
    If you find the response helpful please click the scales in the blue bar above and rate it
    If you don't like the response, don't bother with the scales, they are not 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