S
Steve M (remove wax for reply)
I am writing my second VBA macro for Outlook 2000 (lots of experience
in Word). Several questions:
1. Is there any way to record a macro and then tweak it like in VBA
for Word?
2. The new message is a form letter for spam complaints. I found
something in the Online help and what I have so far is at the bottom
of this message.
It works, mostly, but there are some little problems. First, my
default setting for new postings is Plain text (Tools / Options / Mail
Format, Send in this message format).
However, the new message created by this macro is in Rich Text. I
want the new email to be in Plain text format.
3. While working up a spam complaint, I often right click on the link
in the spam and "Copy Shortcut", then paste the link into the email
message. I want the text of the link to be pasted at that spot of the
email message, like
http://www.vfwspkc.com.thepojjuhyfcx.biz/
and NOT to add the link as an attachment. Is there a setting that
will allow this?
4. Is there an online tutorial or some other good introduction to VBA
in Outlook? I have written thousands of lines of Word macros, and
quite a few in Excel, but there isn't much onscreen help for Outlook.
Thanks.
Steven
===================
Sub NewLart()
Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem
Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.To = "nanas"
.Subject = " "
.Body = "The message below is unsolicited advertising, or
spam." & _
Chr(13) & "Sending IP:" & Chr(13) & Chr(13) & _
"Link advertised in spam:" & Chr(13) & Chr(13) & _
"Complete headers of spam." & Chr(13) & _
"Original message, including full headers." & Chr(13) & _
"Address(es) of original recipient(s) have been replaced
with ****" _
& Chr(13) & "-------------"
End With
myOLItem.Display
End Sub
===================
in Word). Several questions:
1. Is there any way to record a macro and then tweak it like in VBA
for Word?
2. The new message is a form letter for spam complaints. I found
something in the Online help and what I have so far is at the bottom
of this message.
It works, mostly, but there are some little problems. First, my
default setting for new postings is Plain text (Tools / Options / Mail
Format, Send in this message format).
However, the new message created by this macro is in Rich Text. I
want the new email to be in Plain text format.
3. While working up a spam complaint, I often right click on the link
in the spam and "Copy Shortcut", then paste the link into the email
message. I want the text of the link to be pasted at that spot of the
email message, like
http://www.vfwspkc.com.thepojjuhyfcx.biz/
and NOT to add the link as an attachment. Is there a setting that
will allow this?
4. Is there an online tutorial or some other good introduction to VBA
in Outlook? I have written thousands of lines of Word macros, and
quite a few in Excel, but there isn't much onscreen help for Outlook.
Thanks.
Steven
===================
Sub NewLart()
Dim myOLApp As New Outlook.Application
Dim myOLItem As Outlook.MailItem
Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.To = "nanas"
.Subject = " "
.Body = "The message below is unsolicited advertising, or
spam." & _
Chr(13) & "Sending IP:" & Chr(13) & Chr(13) & _
"Link advertised in spam:" & Chr(13) & Chr(13) & _
"Complete headers of spam." & Chr(13) & _
"Original message, including full headers." & Chr(13) & _
"Address(es) of original recipient(s) have been replaced
with ****" _
& Chr(13) & "-------------"
End With
myOLItem.Display
End Sub
===================