+ Reply to Thread
Results 1 to 2 of 2

Print Macro Help!

  1. #1
    Registered User
    Join Date
    12-17-2011
    Location
    Palm Coast
    MS-Off Ver
    Excel 2007
    Posts
    2

    Print Macro Help!

    Good morning!

    I have some people on my staff that have Excel 2007; others have Excel 2003. I have a worksheet template that has a print macro that seems to work on the users with Excel 2007, but it doesn't work with Excel 2003 but I can't figure out what. The error I get is "Run-time error 1004: You've entered too many arguments for this function"

    Here is the macro code in question:

    Sub PrintSumm()
    '
    ' PrintSumm Macro
    '

    '
    Range("A1:L27").Select
    ActiveSheet.PageSetup.PrintArea = "$A$1:$L$27"
    ExecuteExcel4Macro "PRINT(1,,,1,,,,,,,,2,,,TRUE,,FALSE)"
    Range("A20:K27").Select
    End Sub

  2. #2
    Registered User
    Join Date
    11-15-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2007
    Posts
    97

    Re: Print Macro Help!

    ExecuteExcel4Macro "PRINT" does not work in Excel 2003 version. Works only on Excel 2007. Try the ActiveSheet.PrintOut method. This should work for both the 2003 and the 2007 versions.

+ 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