+ Reply to Thread
Results 1 to 16 of 16

Conditionally Copy rows to new sheet in Excel 2007

Hybrid View

  1. #1
    Valued Forum Contributor Steffen Thomsen's Avatar
    Join Date
    10-15-2010
    Location
    Kolding, Denmark
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    953

    Re: Conditionally Copy rows to new sheet in Excel 2007

    Hi,

    Try running the code in this workbook and se if it does whats required!

    Steffen Thomsen
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-16-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Conditionally Copy rows to new sheet in Excel 2007

    Quote Originally Posted by Steffen Thomsen View Post
    Hi,

    Try running the code in this workbook and se if it does whats required!

    Steffen Thomsen
    Thanks a lot Steffen...

    It works as expected.

    Only a query..once the sheets are generated and I run the macro once again through a button click, same entry is made on the existing sheets and the data is duplicated.

    I mean when I first run the macro, 4 new sheets are generated with 4 months. I then run the macro again, and on the same 4 sheets the rows are repeated.

    Anyway I can prevent this, so that if someone clicks the button again and the macro runs, it should delete the existng sheets and generate the new sheets.

    Or can you help me add one more macro to delete the existing sheets apart from the main sheet?

    Thanks in advance

    Regards
    Souvick

+ 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