+ Reply to Thread
Results 1 to 7 of 7

Controlling print settings using Excel macro

Hybrid View

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Controlling print settings using Excel macro

    Sorry, I solved that problem. The next issue is another compile error: type mismatch for this line of code:

     ReDim yDevModeData(nRet + 100) As Byte
          nRet = DocumentProperties(0, hPrinter, sPrinterName, _
                      VarPtr(yDevModeData(0)), 0, DM_OUT_BUFFER)
    The section of code highlighted is VarPtr
    Last edited by Cutter; 09-21-2012 at 08:35 AM. Reason: Added code tags

+ 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