
Code for Replying to Selected Msg
Sweet, thanks. Actually I was really close, I didn't know about the (1)
about .selection. You know why that is there? Help never mentioned
anything about it.
I try to insert the text from the previous email in the reply (so it looks
like a normal reply) but it only manages to copy straight text, no HTML.
Anyway to fix this? I use:
objreply.HTMLBody = "Text Here" & Chr(13) & Chr(13) & objitem.HTMLBody
...but it still doesn't pick up the HTML. Am I doing something wrong?
One last thing, how do I insert the signature using VB? Again, help doesn't
mention a thing about it, but there must be a way. Thanks for all your
help.
HockeyBoy
Quote:
> > I'm trying to setup some outlook macros for my department to reduce work
on
> > repeative tasks. I'm a bit of a newbie at outlook objects, but I've
managed
> > to code just about everything I want my macro to do except for the most
> > basic thing. I can't figure out how to reply to the currently selected
> > message!! I know this seems like a basic thing, but I think I'm messing
up
> > my objects. So, HELP! thanks.
> Here you go...
> Sub replying()
> Dim myitem, myreply
> Set myitem = Application.ActiveExplorer.Selection(1)
> Set myreply = myitem.Reply
> 'for sending the reply
> myreply.Send
> End Sub
> Regards
> Natarajan