Automatically save contact when i reply

J

Jay

How do i automatically save a email contact when i relpy
in outlook. I have Office xp and using outlook
 
J

Jay

Hi Sue,

thanks for the reply. I tried that but it did not work.

does the code go into one module or does it have to go
into seperate modules?

Jay
 
S

Sue Mosher [MVP-Outlook]

What did you try? What in particular did not work?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

jay

I pressed F11 and the added to thisoutlook session all
the code that you have on your web site. I also tried
putting the first part of the code in this outlook
session and the other parts in a new inserted module.

Jay
 
S

Sue Mosher [MVP-Outlook]

Can you run any macro manually? Did you check your setting in Tools |
Macros | Security? Did you put a breakpoint in the code and step through it?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

Jay

when i go to tool / Macros / security it is set to
medium. if i go to Tools / Macros / Macros there is
nothing there to choose. when i pasted the code into
ThisOutlookSession it automatically put 2 lines in the
code spliting the code into 3 sections.

Jay
 
S

Sue Mosher [MVP-Outlook]

Can you run any macro manually? If not, shut down OUtlook, wait a few
minutes, then restart.
when i pasted the code into
ThisOutlookSession it automatically put 2 lines in the
code spliting the code into 3 sections.

I don't know what you mean by this. I was referring to a debugging
breakpoint, added by pressing F9 while you're on the code statement where
you want processing to stop.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
G

Guest

where should i press F9 in the code?
-----Original Message-----
Can you run any macro manually? If not, shut down OUtlook, wait a few
minutes, then restart.


I don't know what you mean by this. I was referring to a debugging
breakpoint, added by pressing F9 while you're on the code statement where
you want processing to stop.
--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers






.
 
S

Sue Mosher [MVP-Outlook]

On the code statement where you want start debugging.

Again, can you run any macro manually?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

jay

I copied all the code that you have on your site the
press alt+F11 then i add the code to ThisOutlookSession.
i then went to the end of the code and pressed F9 when
the last line ' End Function ' was highlighted. No i can
run a macro manually. when i close and restart outlook it
askes me if i want to run macros and i say YES.

Jay
 
S

Sue Mosher [MVP-Outlook]

If you put a breakpoint on the last line in the procedure, that won't do you
much good. Debugging will start only when the procedure ends. Instead, put
the breakpoint on one of the early lines.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

On any line with code after the first line in the procedure.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
J

Jay

Ok, i done that. replied to a new contact and when i hot
send it came up with a 'Compile Error, User defined type
not defined' and it highlighted the line 'objSMail As
Redemption.SafeMailItem'

Jay
 
S

Sue Mosher [MVP-Outlook]

That means that you either have not downloaded and installed the Redemption
SafeOutlook library from http://www.dimastr.com/redemption/ or you have not
added a reference to that library in your project with the Tools |
References command in VBA.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



Jay said:
Ok, i done that. replied to a new contact and when i hot
send it came up with a 'Compile Error, User defined type
not defined' and it highlighted the line 'objSMail As
Redemption.SafeMailItem'
Also note: The newsgroup interface you are using apparently does not quote
earlier messages in the thread, making your latest message so short on
detail that you risk not getting the answer you're looking for. Please take
the time to quote the original message.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top