+ Reply to Thread
Results 1 to 6 of 6

Split worksheet into multiple worksheets

  1. #1
    Registered User
    Join Date
    08-12-2009
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Smile Split worksheet into multiple worksheets

    This code splits a worksheet into multiple sheets (based on sales person in column A). But when it does it, it deletes the sheets and then re-creates them. However this messes with my formulas I have linked to the split sheets and turns them into #REF! errors.

    Can someone edit the code below to simply clear the cells and replace with the updated data? I will make sure blank sales person worksheets are set up in advance.

    Thanks!

    Please Login or Register  to view this content.
    Last edited by ashtanga; 08-12-2009 at 06:11 PM.

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

    Re: Split worksheet into multiple worksheets

    Maybe like this:

    Please Login or Register  to view this content.
    _________________
    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!)

  3. #3
    Registered User
    Join Date
    08-12-2009
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Split worksheet into multiple worksheets

    Thanks, it nearly works. It puts my first sales person into the Unique worksheet and leaves that sales person's worksheet empty?

  4. #4
    Registered User
    Join Date
    08-12-2009
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Split worksheet into multiple worksheets

    And when I deleted a sales person worksheet, rerun the macro, the worksheet wasn't replaced.

  5. #5
    Registered User
    Join Date
    08-12-2009
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Split worksheet into multiple worksheets

    oops forget those comments I was running the macro from the worksheet

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

    Re: Split worksheet into multiple worksheets

    If that takes care of your need, be sure to EDIT your original post, click Go Advanced and mark the PREFIX box [SOLVED].


    (Also, use the blue "scales" icon in our posts to leave Reputation Feedback, it is appreciated)

+ 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