+ Reply to Thread
Results 1 to 4 of 4

Macro to format numerous sheets into one

  1. #1
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249

    Macro to format numerous sheets into one

    Hi

    I was wondering if anyone could help with the below:

    I currently receive a file on a daily basis, which appears in the same format each day.
    The problem I have is that the workbook contains a different number of sheets each day and each sheet contains a different number of orders.

    Some days there can be 1 order and only 1 sheet. Other days there can be 20 orders and on 15 seperate sheets. (see spreadsheet Example)
    (Note that sometimes the sheets do not go up in numerical order, for example this example the sheets are numbers 1, 6, 9 and 16.

    What I want to do is format the spreadsheet "Example" into something similar to the spreadsheet "Example1" that ive attached.

    Basically "Example1" has had columns E & G added in and this information is populated from cells B1 and C12 on the relevant sheet

    (Note each sheet can have different dates in C12 and Buy/Sell indicators in B1)

    Can anyone help or point me in the right direction?

    Regards
    Attached Files Attached Files
    McCrimmon

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you search my recent replies I posted similar code in the last few days.
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor mccrimmon's Avatar
    Join Date
    02-19-2004
    Location
    Scotland
    MS-Off Ver
    2003
    Posts
    249
    Quote Originally Posted by royUK
    If you search my recent replies I posted similar code in the last few days.
    Roy,

    Ive just had a search through your recent posts and cant find it.

    Can you please point me in the right direction?

    Cheers

    McCrimmon

  4. #4
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    See macro 'Macro1' in attached file. I hope it's what you need.

    Regards,
    Antonio
    Attached Files Attached Files

+ 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