Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Outlook Newsgroups
Outlook VBA Programming
macro to reply sometimes fails - why?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Mark, post: 4883830"] Hi all Can anybody suggest an if statement that would. I have limited knowledge of Outlook VBA. But along the lines of the below. Thanks Mark If myItem.SenderName contains " " Then GoTo FirstName: ..HTMLBody = "<span style=""font-family : Arial;font-size : 11pt;color:#1F497D""><p>Hi " & Left$(myItem.SenderName, InStr(1, myItem.SenderName, "") - 1) & ",</p></span>" & .HTMLBody End If FirstName: ..HTMLBody = "<span style=""font-family : Arial;font-size : 11pt;color:#1F497D""><p>Hi " & Left$(myItem.SenderName, InStr(1, myItem.SenderName, " ") - 1) & ",</p></span>" & .HTMLBody [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Outlook Newsgroups
Outlook VBA Programming
macro to reply sometimes fails - why?
Top