Results 1 to 3 of 3
  1. #1
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22

    How to Maximize outlook email when opened


    Hi all, the following code opens an outlook email and attaches a pdf of a report to it. The code works but when it opens the screen to prompt the user to see if they want to edit the email before sending its minimized. Is there a way for the email to be opened maximized.

    Code:
    DoCmd.SendObject acSendReport, "Estimate", acFormatPDF, _
        "MVSTAR OPERATOR; HYDRO ONE TxDx; TDS GENERATOR", "METER DATA SERVICES", , _
        "" & SubjectLine, "" & MessageLine, True
    The reason i want to do this is because i want to take a screenshot of it and automatically save the copy of the email to a folder.

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I would probably use an API to the user32 file

    Declare Function IsZoomed Lib "user32" (ByVal hWnd As Long) As Long

    Although, your issue may be associated with running your DoCmd while Outlook is not running and therefore your request is restricted to the System Tray.

  3. #3
    kassem is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    22
    thanks so much!!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. sending email from outlook
    By darwish in forum Programming
    Replies: 1
    Last Post: 04-16-2014, 07:49 AM
  2. Replies: 11
    Last Post: 07-24-2013, 11:49 AM
  3. Automated Email using Outlook
    By imran688 in forum Programming
    Replies: 25
    Last Post: 11-12-2012, 03:02 AM
  4. Email and Outlook
    By Douglas Post in forum Programming
    Replies: 1
    Last Post: 02-13-2012, 02:57 PM
  5. email with outlook.application
    By JJCHCK in forum Access
    Replies: 5
    Last Post: 08-25-2011, 06:19 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums