+ Reply to Thread
Results 1 to 8 of 8

macro not finishing task

  1. #1
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299

    macro not finishing task

    this macro works perfect, but does not finish creating??

    If a c is in col O macro should create a new sheet.
    If P is col O it prints.

    The only problem is when I try to create a big list. It doesn't finish.
    Any Ideas.
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,259
    Hello erock24,

    How big of list are you referring to? What error message and number to you get or does the program freeze?

    Thanks,
    Leith Ross

  3. #3
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    See if this works for you:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    I edited code with your change, it works but I loose my print options.
    I need to have those new sheets print to 1 page.
    I added code I thought would do it but it doesn't. What have I done wrong??

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    How big of list are you referring to? What error message and number to you get or does the program freeze?
    It doesn't freeze it just doesn't produce all the sheets it should.

    Ikaabod's edit fixed that problem, but now I have a print set up issue. i guess since the copy method is different. I don't really know why Ikaabod's edit works.

  6. #6
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    Excel (2003) seems to not like copying an entire sheet to the end of a workbook with "x" amount of worksheets (somewhere around 40). I tried doing this manually and it still wasn't allowing me to.

    To avoid that I changed the code so it creates a new worksheet, then copy/paste's the template invoice into the newly created sheet and rename's the worksheet.

    I can take a look at the printing problem.
    EDIT: Try this
    Please Login or Register  to view this content.
    Last edited by Ikaabod; 11-29-2007 at 05:56 PM. Reason: Added code for printing to one page

  7. #7
    Forum Contributor
    Join Date
    02-20-2007
    MS-Off Ver
    2003 & 2007
    Posts
    299
    And that's amazing.

    Works perfectly Thank you very much for your time and help.

  8. #8
    Valued Forum Contributor
    Join Date
    04-11-2006
    Posts
    407
    You're quite welcome. I'm glad I was able to help.

    All the best,
    Ik

+ 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