+ Reply to Thread
Results 1 to 4 of 4

To create new worksheets from existing table ...

  1. #1
    Registered User
    Join Date
    02-23-2010
    Location
    Malmo, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    4

    To create new worksheets from existing table ...

    Hi All,

    I am a very beginner in VBA in Excel and I would like to get a help from you guys. For some of you below problem may be easy but for me it is very difficult. I will shorthly explain:

    In attached file is worksheet called "Data". This a database for next task: which is creation of new worksheets. I need to create macro which will:
    1. Create new worksheet according to column J (after this there should be three new worksheets: Denmark, Australia and Belgium). The name of new worksheet should be the same as name in column J.
    2. In each new worksheet data in the table should be sorted by column I (currency, ascending).
    3. It is also important that the first four rows remains the same in each new worksheet.

    I hope that I made myself clear enough and I really hope to get your help.
    Please ask me if there is somehting unclear.

    Thank you in advance.
    Sylwester
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: To create new worksheets from existing table ...

    It is also important that the first four rows remains the same in each new worksheet.
    Not sure what this means. Do you mean the 3 Denmark rows should appear on every sheet?

  3. #3
    Registered User
    Join Date
    02-23-2010
    Location
    Malmo, Sweden
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: To create new worksheets from existing table ...

    Quote Originally Posted by StephenR View Post
    Not sure what this means. Do you mean the 3 Denmark rows should appear on every sheet?
    Hi Stephen,

    No. I meant that in each new worksheet rows from 1-4 should be the same as rows from 1-4 in "Data" sheet.
    In these rows I have another data but I have deleted them to make it easier to see, I only left "STATEMENT OF ACCOUNT" there.

    So to sum up:
    1. "Denmark" worksheet. Rows 1-4 the same as in "Data". Rows from 5 - etc: sorted data from macro.

    Please let me know if it is more clear now.
    Sylwester

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: To create new worksheets from existing table ...

    Sylwester- this should do everything but insert the three rows. Having extra rows at the top of the first sheet will mess up the AutoFilter so would be better kept elsewhere. Code could be amended, but maybe rethink your layout.
    Please Login or Register  to view this content.

+ Reply to 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