+ Reply to Thread
Results 1 to 3 of 3

Macro to print a fixed area to PDF

  1. #1
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Macro to print a fixed area to PDF

    Hello,

    I have a worksheet where the print area never changes: its always A1:O100. I want to add a button that runs a macro onto the worksheet, and I want the macro create a PDF of this worksheet. I know I could just as easily create a PDF manually, but I'm curious if there's a way to use a macro to complete the process. Any suggestions/advice would be great. Thanks in advance!

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro to print a fixed area to PDF

    Hi

    See this article. Describes what you want to do but for Excel 2010. See if works in 2007 too.

    http://msdn.microsoft.com/en-us/libr...ice.14%29.aspx
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    88

    Re: Macro to print a fixed area to PDF

    I took a look and I'm going to try some things. Not sure if I should mark the thread as solved or not, so I'm going to leave it open and post on here if I come up with a solution. If someone prefers that the thread be marked as "solved" feel free to close it. Thank you!

+ 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. Macro - Set Print Area for Changing Data Area
    By ksp in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-27-2013, 04:19 AM
  2. Replies: 1
    Last Post: 02-12-2013, 12:16 PM
  3. Replies: 2
    Last Post: 12-28-2005, 01:10 PM
  4. [SOLVED] Create a print macro that would automatically select print area?
    By Ron de Bruin in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 09-06-2005, 09:05 AM
  5. [SOLVED] Create a print macro that would automatically select print area?
    By wastedwings in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 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