+ Reply to Thread
Results 1 to 8 of 8

Split into Separate Worksheets

  1. #1
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Split into Separate Worksheets

    Hi All,

    Please see the example attached.

    Column C contains the Agency name, I wish to separate all the one type of agencies into seperate worksheets and name the tab the agency name.

    I have seen other code on this site pretty close to what I want but will not do exactly as wanted.

    Can someone help out please!!

    Thanks
    Attached Files Attached Files
    Last edited by bigroo1958; 03-14-2010 at 09:09 PM.
    ==========
    Bigroo1958
    Austin, Texas
    ==========

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Split into Separate Worksheets

    Hi,

    Add the following macro and run it. Please note one of your agencies contains a "/" character which is not allowed in a sheet name. The macro will replace a / with a "_"

    Please Login or Register  to view this content.
    HTH
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Split into Separate Worksheets

    Richard,

    Thanks a millon, this is exactly as want!!!.

    I appreciate your time on this.

    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Split into Separate Worksheets

    As the OP is using Excel 2007, I must point out that using Integer for declarations is fraught with danger.

    Go ahead and declare them as Long so that you don't run into problems with those variables on large datasets.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Split into Separate Worksheets

    Hi,

    General point taken re Integer vs Long variable types.

    In mitigation I calculated that there was likely to be less than 32000 unique agency types and that therefore this wouldn't be a problem.

    Rgds

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Split into Separate Worksheets

    Hi,

    Thanks for the feedback. When you get a moment please visit your original post and mark the thread as closed - and rate the response if appropriate.

    Regards

  7. #7
    Forum Contributor
    Join Date
    11-27-2009
    Location
    Austin, Texas
    MS-Off Ver
    Excel 2013 & 2016
    Posts
    409

    Re: Split into Separate Worksheets

    Richard,

    Not sure what you mean by "Rate this thread", can you tell me more?

    Richard you understood me issue and solved it in one answer, I appreciate it!!

    James

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Split into Separate Worksheets

    Thanks James,

    Sorry for the confusion, I should have said rate the answer not the thread. You can click on the little scales icon.

    Regards

+ 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