+ Reply to Thread
Results 1 to 3 of 3

Help copying and pasting worksheet names to another WS

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    Braga
    MS-Off Ver
    Excel 2010
    Posts
    2

    Help copying and pasting worksheet names to another WS

    Hello,

    I am working on an Excel workbook where I enter data for the company I work for. Now this file compiles monthly data and each WS represents a work day. On each of these WSs I fill about 50/60 rows in 25 columns. Now I want to compile all of this data in a single worksheet. I have managed to do that using a simple copy and paste macro.

    My next goal is to have a new column (the 26th) in this compiled Worksheet representing the day from which this data originates. Now, given that I always name the worksheets according to the day they represent I should only need to copy the WS name and paste it in the appropriate place. Unfortunately I can't get this done. I have managed to copy the WS name to their own worksheets but when I try to copy it to the compiled worksheet I only get a consecutive list of the worksheet numbers.

    For instance, it shows something like this:

    2
    3
    4
    5
    6
    9
    10
    11
    12

    Where I want it to show something like this:

    2
    2
    2
    2
    2
    2
    2
    2
    3
    3
    3
    3
    3

    Depending on the worksheet where my data originates from.

    I can fairly manage around a macro but I am not an expert in code writing or reading.

    Thank you in advance for your time.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Help copying and pasting worksheet names to another WS

    from what i understand of your issue,

    Please Login or Register  to view this content.
    This gives you want a table of sheet names into sheet named "Sheet1" and Column "A"
    adjust to needs
    Last edited by humdingaling; 05-24-2013 at 03:32 AM.

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    Braga
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Help copying and pasting worksheet names to another WS

    Thank you, I'll try this code as soon as possible and let you know!

+ 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