+ Reply to Thread
Results 1 to 3 of 3

Email body macro problem

  1. #1
    Registered User
    Join Date
    01-24-2013
    Location
    Gold Coast
    MS-Off Ver
    Office 2007
    Posts
    2

    Email body macro problem

    Hi,

    I am trying to code a macro to automatically create an email to confirm an appointment from the details of the appointment made. When the appointment is selected or open the macro is run and the email populates with the information that I need. As part of the email I confirm the Appointment Location (either at the address specified in the location field or defaulting to our office address if the location field is left blank)

    I have confirmed that the macro is returning the correct details by displaying them in a MsgBox, but I cannot get the macro to place the correct location address in the body of the email.

    Can anybody help with where I am going wrong.


    Please Login or Register  to view this content.
    Moderators note:

    1. you were almost there to mark the thread solved. After you go into edit on teh 1st post, go into advanced, and scroll down a but til you see the pull-down that says "Prefix" and chanfge that to solved

    2. for future reference, please use code tags around your VBA code, it makes them easier to read and copy
    Last edited by FDibbins; 01-24-2013 at 09:29 PM. Reason: Marked as "SOLVED"

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Email body macro problem

    you have to define AppointLocation before the .body argument so excel knows that AppointLocation is not ""

  3. #3
    Registered User
    Join Date
    01-24-2013
    Location
    Gold Coast
    MS-Off Ver
    Office 2007
    Posts
    2

    Re: Email body macro problem

    Thanks Scott,

    Makes perfect sense... Of course.

    I feel like such a newb!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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