+ Reply to Thread
Results 1 to 2 of 2

Creating a loop that will sort, copy, paste and save data into seperate workbooks

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Bronx, NY
    MS-Off Ver
    Excel 2007
    Posts
    7

    Creating a loop that will sort, copy, paste and save data into seperate workbooks

    Hello folks,

    I am trying to figure out how to use a loop to generate multiple reports from one source spreadsheet. Below is an example of what I would like to do:

    Master Spreadsheet:

    School Network Attendance Rate
    1 A 96
    4 A 95
    3 B 84
    7 B 90
    2 C 92
    5 C 98

    Data is sorted only for Network A, copied, pasted and saved onto a new workbook.

    School Network Attendance Rate
    1 A 96
    4 A 95

    What I've been doing is recording a macro for all the steps to save the data for one network, copying the VBA code and pasting it over and over again for the other networks. I want to know if there is loop that can do this for me.
    Last edited by EggHead; 12-14-2009 at 03:36 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Figuring out VBA Code for Loop

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    Last edited by royUK; 12-14-2009 at 03:22 PM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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