Closed Thread
Results 1 to 2 of 2

VBA Macro to Create Sheets Based on Column of Values

  1. #1
    Registered User
    Join Date
    10-04-2012
    Location
    Texas
    MS-Off Ver
    Excel 2007/10
    Posts
    43

    VBA Macro to Create Sheets Based on Column of Values

    Hi everyone,

    I mentioned a similar problem before, but I did a poor / confusing job of explaining it, so it it goes:

    I have 2 sheets:
    (1) Carrier - Current Location as seen here : sheet.JPG
    (2) Carrier Specific

    Here is what I'm hoping the macro will accomplish:
    1) Copy the sheet called Carrier Specific
    2) Name the new sheet based on the value in Carrier - Current Location (starting at C4)
    3) Input that same value into cell D1 of the new sheet
    4) Go down the list in Carrier - Current Location and create new sheets like this until it hits a 0 value

    Ex. Carrier - Current Location C4 = CKUO
    --I want this to copy Carrier Specific, re-name is CKUO, and input "CKUO" into cell D1 of the new sheet called CKUO
    --Then repeat this for every item in the list until it hits a value of 0

    I attached my spreadsheet to this as well, please let me know if you can help me out / lead me in the correct direction!
    (It's a smaller version of my real workbook, so there's a bunch of REF errors)

    Thanks so much!!
    Attached Files Attached Files

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA Macro to Create Sheets Based on Column of Values

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread. http://www.excelforum.com/excel-prog...on-list-2.html

    If you need to provide any additional information like you did in this thread, you can post it in your original thread in a new post.

    Thread Closed.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

Closed 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