+ Reply to Thread
Results 1 to 3 of 3

Using Excel for Generating Unique Reports

  1. #1
    Registered User
    Join Date
    11-28-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Using Excel for Generating Unique Reports

    Hi All
    I have an excel question which i dont know where to begin so any help or guidance is very much appreciated.

    I have an excel worksheet that list the Users Names, Email Address and the Dept they belong to. We are required to send out to each dept their list of users for their respective Head of Departments verification annually.

    I have created a pivot table that we can select the relevant depts and the users list would be populated automatically.

    My problem is how do i create a macro that can automatically cycle through all the depts in my list and export individual excel worksheet out as separate workbooks? Each workbook need to be renamed as their dept name.

    Any ideas is appreciated.....
    Attached Files Attached Files
    Last edited by victorc; 11-30-2009 at 05:22 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Using Excel for Generating Unique Reports

    Based on your sample file - something like the below perhaps ?

    Please Login or Register  to view this content.
    the above, when run, will iterate each dept and create a new file with a copy of the PT output - each file will be created within the same directory as the "master" file (ie the file in which the code is placed) and each file will be named as per the dept it contains.

  3. #3
    Registered User
    Join Date
    11-28-2009
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Using Excel for Generating Unique Reports

    Hi

    Thank you for the guidance....
    Appreciate if you can guide me further if i have more than 1 page fields..how do i set it in VB ( for example i may set by State and County and i need to generate for every county in the state).

    The copy and paste function only paste the values, how do i go about pasting the formats as well.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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