+ Reply to Thread
Results 1 to 7 of 7

Create new sheet at each change in value

  1. #1
    Registered User
    Join Date
    06-17-2008
    Posts
    50

    Create new sheet at each change in value

    I have a worksheet looking at various customers on various routes.

    The routes are listed in column C, and other customer information is in columns A, B, and D to I.

    I have several workbooks, and in each workbook I need to have a different sheet for each Route.

    Right now, all the information is on one sheet. Is there a Macro or some VBA I can use that will make one sheet for each route? And move all the information with it?

    Also, how do I insert the VBA coding and then make it run?

    - Tnesper

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Before using a macro have you checked whether your data is suitable for a PivotTable?

    Try this code if not
    Please Login or Register  to view this content.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    06-17-2008
    Posts
    50
    Thank you so much, you save me hours and hours of work

  4. #4
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136
    Thanks for your reply,

    With my (very) limited understanding of macros, vba etc, Doesn't that give a list of unique names? i.e. will give one entry for each quoter??
    Following what's going on there tho, is a little beyond me. My limit so far has been getting the calendar plug-in to work and editing the ranges etc. Assume i know nothing of vba. I want to extract all the entries for each quoter and place them on their respective sheets without any breaks.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by TheRetroChief View Post
    Thanks for your reply,

    With my (very) limited understanding of macros, vba etc, Doesn't that give a list of unique names? i.e. will give one entry for each quoter??
    Following what's going on there tho, is a little beyond me. My limit so far has been getting the calendar plug-in to work and editing the ranges etc. Assume i know nothing of vba. I want to extract all the entries for each quoter and place them on their respective sheets without any breaks.
    Please stick to your own thread. That's what this code will do after creating the unique list which is temporary

  6. #6
    Forum Contributor TheRetroChief's Avatar
    Join Date
    09-30-2008
    Location
    UK
    MS-Off Ver
    2019
    Posts
    136

    Oops!

    My bad. Wrong thread....how do i delete posted messages??? Can't see it under the edit post button!!

  7. #7
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Create new sheet at each change in value

    How can I change the column that is used to filter? In your example, you are using column C (or 3), but what if I want to use Column 17 (of 18). I changed the rows count from 9 to 18, but when I change this:

    .Range(.Cells(2, 3), .Cells(.Rows.Count, 3).End

    to

    .Range(.Cells2, 17), .Cells(.Rows.Count, 17).End

    The macro only copies the header row and not all the rows of data along with it. What am I missing there?

    Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to change sheet name
    By westonkw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-30-2008, 04:20 PM
  2. create a new sheet macro
    By jsmity in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-08-2008, 12:08 PM
  3. Automatically create rows of defined data in a new sheet
    By imgr8 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2008, 05:01 PM
  4. how to change all values on a sheet
    By shilpz in forum Excel General
    Replies: 2
    Last Post: 01-16-2008, 11:14 AM
  5. Find, Copy and Create new Sheet
    By red29 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-05-2007, 03:51 AM

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