+ Reply to Thread
Results 1 to 11 of 11

How to create a button to auto copy filtered data from a master sheet to other sheets

  1. #1
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    How to create a button to auto copy filtered data from a master sheet to other sheets

    I bid hello the forum!

    I have a master list full of the personnel-to-be-fed of our "full day-care":

    NUMB.__RANK______CLASS_______NAME____CLASSROOM__PHONE
    (1)____ (Teacher)_(Fine Arts)___(John Brown)__(A4)_____(6999999)
    (2)____ (Student)_(Literature)___(Jenna Smith)_(C4)_____(6888888)
    (3)____ (Student)_(Football)____(Josh Bink)____(D3)_____(6777777)
    (4)____ (Nurse)_____(N/A)_____(Jenna Blur)___(N/A)_____(6555555)

    I use a "master" worksheet in which all of the personnel is listed sorted by their NAME. I would like to create a VBA button which automatically would distribute the data to a new sheet according to their "RANK" (a new "Teacher"-sheet, "Student"-sheet etc) and sort them by "NAME".

    Could someone help me through this?
    I would really appreciate it. Thank you in advance
    Last edited by numca.gr; 02-08-2011 at 09:12 AM.

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    please post sample workbook

  3. #3
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    Will do so as soon as i translate it to English, because it is in Greek right now..
    Thank you for the prompt answer!

  4. #4
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    Here is the translated worksheet:
    http://dl.dropbox.com/u/3791855/Exce...8Food%29_1.xls
    Last edited by numca.gr; 02-08-2011 at 10:24 AM.

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    unfortunately error comes up when trying to download your workbook on the above link. Why do not you try to use forum functionality:

    What Are Attachments?
    The administrator may allow you to use the attachment feature of this forum, which gives you the ability to attach files of certain types to your posts. This could be an image, a text document, a zip file etc. There will be a limit to the file size of any attachments you make, as the forums should not be used as an extension of your hard disk!

    To attach a file to a new post, simply click the [Browse] button at the bottom of the post composition page, and locate the file that you want to attach from your local hard drive.

    Only certain types of files may be attached: these are the valid file extensions for files to be attached to this forum: .

    After posting, the attachment will show up in the body of your message. To view the contents of the attachment (if it is not already displayed) simply click the filename link that appears next to the attachment icon .

    http://www.excelforum.com/faq.php?fa...chment_explain

  6. #6
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    My mistake, please check the link again!! TESTED!
    http://dl.dropbox.com/u/3791855/Exce...8Food%29_1.xls

  7. #7
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    save attachment and make sure the following reference is on:

    1. [Alt+F11] - open Visual Basic window
    2. Tools - References - find and tick "Microsoft Activex Data Objects 2.0 Library"
    3. press "Start"
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    THANK YOU VERY MUCH WATERSEV!! It works like a charm!
    I am deeply thankful!

    I will try to learn from your code and build on it..

  9. #9
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    Is there a way to automatically sort the new sheets (Teachers, Students) according to a custom order firstly AND then by name?

    First sort by Teacher, Student, Nurse, Cleaning
    then sort by Name?

    Lets say:

    Teacher___Arts____Aname
    Teacher___Arts____Bname
    Teacher___Arts____Cname
    Teacher___Sports__AAname
    Teacher___Sports__BAname

    Hope i am not a big pain. Thank you for your help.

  10. #10
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    save attachment and make sure the following reference is on:

    1. [Alt+F11] - open Visual Basic window
    2. Tools - References - find and tick "Microsoft Activex Data Objects 2.0 Library"
    3. press "Start"

    I've noticed a bloody mistake in the code (mistake in field number for cleaning). The mistake is corrected, sorting added though it might be not what you wanted
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-08-2011
    Location
    Greece
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: How to create a button to auto copy filtered data from a master sheet to other sh

    Unfortunately, i broke my laptops' LCD.
    The cable got caught in my legs and just pulled it off the desk and crashed it..
    For now i am forced to post from an internet cafe..
    I will be back soon, thank you for the posts..

    Looking for an ASUS lcd panel now for my EEE PC.. pff..

+ 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