![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am a novice vba programmer,not even put my foot on first step of ladder. I
have bought a book on VBA and Excel but I have an urgent requirement to date stamp my mail at work to protect myself. I found some code for a date stamp Sub StampContact() Dim objItem As Object Dim objNS As namespace Set objNS = Application.GetNamespace("MAPI") Set objItem = Application.ActiveInspector.CurrentItem If objItem.Class = olContact Then objItem.body = objItem.body & vbCrLf & Now() _ & " - " & objNS.CurrentUser End If Set objItem = Nothing Set objNS = Nothing End Sub I found the VB editor which created module 1 in outlook 2007 but the code appears to have a bug and I should like to know 2 things. 1. how to clean the bug up. Line 5 2. what to do with the module after creating it, and how to associate it to a toolbar button. I guess I am running before I can crawl - but there is nothing like jumping in at the deep end! Regards Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|