+ Reply to Thread
Results 1 to 3 of 3

Command Button that allows user to email and print specific sheet

  1. #1
    Registered User
    Join Date
    09-19-2014
    Location
    Philadelphia,PA
    MS-Off Ver
    2010
    Posts
    54

    Command Button that allows user to email and print specific sheet

    Hi all,

    I currently have a macro that copies information from sheet 1 to sheet 2 when a checkbox gets checked (in sheet1). What I need to be able to do is have a command button that allows the user to print and email the contents of sheet 2.

    Ideally, when you hit the command button on sheet 2, I want a PDF to pop up with all the contents of sheet 2. From there, I would like the email/print function to be possible.

    In addition, if with the email function I could have a predetermined email address, subject, and message- that would be great!

    If anyone could help it would be much appreciated! I have been working on this for two weeks to no avail!
    Thank you so very much

  2. #2
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: Command Button that allows user to email and print specific sheet

    Hi,

    Check out the below link for Print and Email through VBA:

    For Print : http://www.learnexcelmacro.com/wp/20...acro-to-print/

    For Email : http://www.rondebruin.nl/win/s1/outlook/mail.htm


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

  3. #3
    Registered User
    Join Date
    09-19-2014
    Location
    Philadelphia,PA
    MS-Off Ver
    2010
    Posts
    54

    Re: Command Button that allows user to email and print specific sheet

    Thank you Paresh J,

    VBA code to Show Print Preview before actually printing
    'Below statement will print 3 copy of the Sheet1 from Page 2 to Page no: 3
    02.Worksheets("Sheet1").PrintOut From:=2, To:=3, Copies:=3, Preview:=True

    Is there anyway I can add an "email" button to the print preview?
    I cant seem to get both an email VBA and a print VBA to work on the same button.

    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. Save multiple sheet/print sheet with one command button
    By GJR in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-23-2014, 03:06 PM
  2. How to set command button to print to specific network printer
    By sspreyer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2013, 12:20 AM
  3. Command button to send an email based on a specific date
    By suetuff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2013, 04:25 PM
  4. Trying to Print User-Selected Sheets from a button on one sheet.
    By rattler418 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-30-2011, 08:20 PM
  5. command button to move user to specific spot on different sheet
    By grime in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-13-2006, 03:21 PM

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