+ Reply to Thread
Results 1 to 2 of 2

Macro Printing & Save as PDF Problem

  1. #1
    Registered User
    Join Date
    04-01-2014
    Location
    Kansas City, US
    MS-Off Ver
    Excel 2007
    Posts
    10

    Macro Printing & Save as PDF Problem

    New to using VBA in excel

    I've created buttons to be able to print the active sheet and to print the whole workbook less the hidden sheets. Is there a way to add code to make sure that excel is selecting the default printer?
    Active sheet code:
    Please Login or Register  to view this content.
    Print whole workbook less hidden sheets code:
    Please Login or Register  to view this content.
    Help is much appreciated.
    Last edited by alexshaw76; 04-01-2014 at 12:02 PM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Macro Printing & Save as PDF Problem

    Hello alexshaw76,

    Unfortunately your post doesn't comply with rule #3. Please read through the forum rules http://www.excelforum.com/forum-rule...rum-rules.html

    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button). The result will appear like this in the post window:

    [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code]

    ... and appear like this when posted:

    Please Login or Register  to view this content.
    Once this has been corrected we can help you.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

+ 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. Problem with Macro printing code
    By Usethaschwarz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-25-2012, 08:56 AM
  2. Printing Macro Problem - Setting Default printer
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-18-2012, 03:37 AM
  3. Macro using Save As Problem
    By mbmadiw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2006, 12:25 PM
  4. printing macro problem
    By icystorm@hotmail.com in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2006, 05:50 PM
  5. Excel printing macro problem
    By Cam in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2006, 11:48 AM

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