Advertisement

07.24.2008 at 11:07AM PDT, ID: 23593137
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.7

Auto Email from excel using a Global Email Address

Asked by Kojax489 in Microsoft Excel Spreadsheet Software, Lotus Notes, Lotus Domino Email Server

Tags: ,

using code that I got off this site I have figured out how to send out an email using lotus notes with excel.  (code is listed below)  My problem now is that I need to change the name of the sender to a Global address.  Is this possible or dose the sender have to be the person that is currently logged into Lotus notes?


Sub SendEMail()

    Application.DisplayAlerts = False
   
    Dim ws As Object, uiDoc As Object, session As Object, db As Object, uidb As Object, NotesAttach As Object, NotesDoc As Object
    Dim server, MailFile, user, usersig As String
    Dim SheetName As String, ExcelRange As String, EmailSubject As String, bodyMsg As String
    Dim noteid As String

    Workbooks("Test SL Update.xls").Activate
   
    SheetName = "Sheet1"
    ExcelRange = Range("A1").Activate
    EmailSubject = " Service Level Update " & Time & " " & Date
   
    Set ws = CreateObject("Notes.NotesUIWorkspace")
    Set session = CreateObject("Notes.NotesSession")
   
    user = session.UserName
    usersig = session.COMMONUSERNAME
    server = session.GetEnvironmentString("MailServer", True)
    MailFile = session.GetEnvironmentString("MailFile", True)
   
    Set db = session.GETDATABASE(server, MailFile)
    Set uidb = ws.CurrentDatabase
    Set NotesDoc = db.CreateDocument
   
    NotesDoc.Subject = EmailSubject
    NotesDoc.SendTo = "Jesse_Terrell@toyota.com; Drew_Winner@Toyota.com"
           
    Sheets(SheetName).Select
    Sheets(SheetName).Range("B6:C66").Select
    Selection.Copy
   
    Dim noWord As Object, myDoc As Object
    Set noWord = CreateObject("Word.Application")
    noWord.Visible = False
    noWord.Documents.Add
    Set myDoc = noWord.ActiveDocument
   
    noWord.Selection.Paste
    myDoc.Tables(1).AutoFitBehavior (wdAutoFitContent) ' wdAutoFitWindow

    Application.CutCopyMode = False

    Set myDoc = noWord.ActiveDocument
    myDoc.Tables(1).Range.Copy
   
    Set uiDoc = ws.EDITDOCUMENT(True, NotesDoc)
    Call uiDoc.GOTOFIELD("Body")
    Call uiDoc.FIELDAPPENDTEXT("Body", bodyMsg & Chr$(13))
    Call uiDoc.Paste
    Call uiDoc.Send
    Call uiDoc.Close
   
    noWord.Application.Quit (0)
    Set session = Nothing
    Set db = Nothing
    Set NotesAttach = Nothing
    Set NotesDoc = Nothing
    Set uiDoc = Nothing
    Set ws = Nothing
    Set noWord = Nothing
       
    AppActivate "Microsoft Excel"
    Application.CutCopyMode = False

    MsgBox "E-mail has been sent !", vbInformation
       
End Sub
Start Free Trial
[+][-]07.24.2008 at 11:19AM PDT, ID: 22081972

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:28AM PDT, ID: 22082069

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:31AM PDT, ID: 22082103

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:49AM PDT, ID: 22082261

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 11:52AM PDT, ID: 22082290

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 12:33PM PDT, ID: 22082691

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 02:07PM PDT, ID: 22083539

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.24.2008 at 02:11PM PDT, ID: 22083570

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Excel Spreadsheet Software, Lotus Notes, Lotus Domino Email Server
Tags: VBA, excel
Sign Up Now!
Solution Provided By: SysExpert
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.25.2008 at 03:10PM PDT, ID: 22092670

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628