+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Print Area macro giving me 'Run-time error 1004'

  1. #1
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    Print Area macro giving me 'Run-time error 1004'

    Hi All
    I'm writing a simple macro to set a print area for over 100 ranges.
    The problem is that over 17 ranges only, I'm getting the 1004 error.
    (If I delete the last ranges (back to 17 ranges) the macro runs fine)

    Hope any one can advice me what will be the best way to solve it.

    Please Login or Register  to view this content.
    Many thanks for your help
    Amit
    Using Excel 2007.
    Amit Cohen

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Print Area macro giving me 'Run-time error 1004'

    The string is too long. Break it into smaller pieces and print.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-08-2008
    Location
    Johannesburg
    MS-Off Ver
    2007
    Posts
    55

    Re: Print Area macro giving me 'Run-time error 1004'

    Hi
    Is there any other way to go around it?
    I need to create PDF out of it and at the moment,
    Using QutePDF, its actually pops-up a 'save as' window
    I mean, its not going direct to the printer.

+ 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