+ Reply to Thread
Results 1 to 3 of 3

Printer Object in Excel 2010 VBA

  1. #1
    Registered User
    Join Date
    12-25-2014
    Location
    Elk Grove, CA
    MS-Off Ver
    2010
    Posts
    3

    Printer Object in Excel 2010 VBA

    Do we have access to the printer object in Excel 2010 VBA? I've got a text variable I put together in code and want to send it to the printer.

    something like:

    s="This is a test"

    printer.print s
    Enddoc

    Seems like it shouldn't be as difficult as I'm finding it. Scoured MSDN and the net without luck in 10 days....

    Thanks,

    dj

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

    Re: Printer Object in Excel 2010 VBA

    You could put the string in a cell and then print the cell:

    Please Login or Register  to view this content.
    Last edited by shg; 02-01-2015 at 02:56 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-25-2014
    Location
    Elk Grove, CA
    MS-Off Ver
    2010
    Posts
    3

    Re: Printer Object in Excel 2010 VBA

    I was hopeful to try this but it truncated the text to maybe 100 characters and there are over 1000 in the string....

    So far I'm saving it as a text file, pasting a hyperlink to it into a cell and then launching the hyperlink. User has to print from another program...Ugly....

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Excel 2010 VBA Object Model
    By andrewc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-01-2013, 11:33 AM
  2. Select printer VBA Office 2010
    By oo0tommyk0oo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-17-2011, 06:43 PM
  3. Update excel OLE unbound object withing Access 2010
    By Snoopy2003 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-23-2011, 03:17 AM
  4. Update excel OLE unbound object withing Access 2010
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2011, 07:26 PM
  5. [SOLVED] How do I initiate the windows printer select object in Excel macro
    By Mick B in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2005, 06:06 PM

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