+ Reply to Thread
Results 1 to 2 of 2

Issues with Macro to Print selected Area

  1. #1
    Registered User
    Join Date
    01-18-2017
    Location
    Florida, US
    MS-Off Ver
    2016
    Posts
    1

    Issues with Macro to Print selected Area

    Hello,

    Nice to be part of this forum, it seems very helpful.

    I created this macro to send and email and it worked perfect. Now I am trying to add the sub to print the rage selected and is not working. The email part still works though but it is not printing. Any help is appreciated.

    Thanks!

    Sub Button12_Click()

    ' When user hits Email to Assoc and Print Macro, Send Email and Print()

    ActiveSheet.Range("A1:U65").Select

    ActiveWorkbook.EnvelopeVisible = True

    With ActiveSheet.MailEnvelope
    .Introduction = ""
    .Item.To = Cells(3, 1)
    .Item.cc = Cells(6, 1)
    .Item.Subject = "FCS Associate Profile- One-on-One - Coaching Date:" & Cells(64, 12)
    .Item.Send
    End With

    End Sub

    Private Sub PrintSomeCells()

    ActiveSheet.Range("A1:U65").Select

    ActiveSheet.PageSetup.PrintArea = "A1:U65"
    ActiveWindow.SelectedSheets.PrintOut From:=1, To:=1, Copies:=1, Collate _
    :=True
    End Sub
    Last edited by Argmanas; 01-18-2017 at 07:53 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Issues with Macro to Print selected Area

    Hi and welcome to the forum. Unfortunately your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. how to create macro button to print a selected area of sheet2 from another sheet
    By EMAIL4DEEPAKRAJ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2015, 06:29 AM
  2. Set print area of selected range then print preview if ok then print the document!
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 07:10 AM
  3. Removing Blank Feilds with Button (Macro) (PRINT AREA ISSUES) Help!!
    By superman0623 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-19-2014, 10:19 PM
  4. [SOLVED] Macro to print selected area
    By izlopez in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-20-2013, 01:11 PM
  5. Variable print area macro issues
    By fourmurphys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2013, 01:13 PM
  6. [SOLVED] Print Area Macro - Incorrect range selected.
    By jpoppet in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-13-2013, 07:15 AM
  7. Excel 2007 : Print Area Issues
    By jade12378 in forum Excel General
    Replies: 2
    Last Post: 05-20-2009, 05:07 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