A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Item.Recipients.Add



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 23rd 06, 05:26 AM posted to microsoft.public.outlook.program_vba
Ian Sweeney
external usenet poster
 
Posts: 3
Default Item.Recipients.Add

VBA in Outlook 2003 - ThisOutlookSession

This code was working but now it does nothing when I send an email. What
could be the problem?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient
Set objMe = ")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub

--
Ian Sweeney
Ads
  #2  
Old March 23rd 06, 05:35 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Item.Recipients.Add

Does other VBA code run?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ian Sweeney" wrote in message ...
VBA in Outlook 2003 - ThisOutlookSession

This code was working but now it does nothing when I send an email. What
could be the problem?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient
Set objMe = ")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub

--
Ian Sweeney

  #3  
Old March 23rd 06, 12:43 PM posted to microsoft.public.outlook.program_vba
Ian Sweeney
external usenet poster
 
Posts: 3
Default Item.Recipients.Add

I don't think I'm running any other VBA.

I was so pleased when this initially worked that I sent it to seven other
members of the team I'm working with. Looking at the mailbox where the BCC
messages were sent, it appears that they all got it working when they
installed it because I see messages in there from of of them, but ONLY FOR
THE DAY IT WAS INSTALLED. Nothing after that.


P.S. Sue, are you really just one person? If so, I'd like to say thanks for
all of the help you've given on various Outlook webpages/newsgroups over the
years.

--
Ian Sweeney


"Sue Mosher [MVP-Outlook]" wrote:

Does other VBA code run?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ian Sweeney" wrote in message ...
VBA in Outlook 2003 - ThisOutlookSession

This code was working but now it does nothing when I send an email. What
could be the problem?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient
Set objMe = ")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub

--
Ian Sweeney


  #4  
Old March 23rd 06, 03:21 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Item.Recipients.Add

My questions was aimed at testing whether there is a problem with your VBA environment. Run this code:

Sub Hello()
MsgBox "Hello"
End Sub

and tell us whether you get a Hello message.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ian Sweeney" wrote in message ...
I don't think I'm running any other VBA.

I was so pleased when this initially worked that I sent it to seven other
members of the team I'm working with. Looking at the mailbox where the BCC
messages were sent, it appears that they all got it working when they
installed it because I see messages in there from of of them, but ONLY FOR
THE DAY IT WAS INSTALLED. Nothing after that.


"Sue Mosher [MVP-Outlook]" wrote:

Does other VBA code run?



"Ian Sweeney" wrote in message ...
VBA in Outlook 2003 - ThisOutlookSession

This code was working but now it does nothing when I send an email. What
could be the problem?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient
Set objMe = ")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub

--
Ian Sweeney


  #5  
Old March 23rd 06, 09:49 PM posted to microsoft.public.outlook.program_vba
Ian Sweeney
external usenet poster
 
Posts: 3
Default Item.Recipients.Add

VBA macros were blocked. I have run selfcert.exe and digitally signed the
macro and all seems to be OK at present. Thanks.

Why did it work when I first added the code? Why did it work when the others
first added the code?

I can't afford to go down the route of paying Verisign vast sums of money
for digital signatures. How can I make this small code snippet work on a
small number of PCs (10)? The users are not technically minded, and not
nearby otherwise I'd do it manually myself.

--
Ian Sweeney


"Sue Mosher [MVP-Outlook]" wrote:

My questions was aimed at testing whether there is a problem with your VBA environment. Run this code:

Sub Hello()
MsgBox "Hello"
End Sub

and tell us whether you get a Hello message.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ian Sweeney" wrote in message ...
I don't think I'm running any other VBA.

I was so pleased when this initially worked that I sent it to seven other
members of the team I'm working with. Looking at the mailbox where the BCC
messages were sent, it appears that they all got it working when they
installed it because I see messages in there from of of them, but ONLY FOR
THE DAY IT WAS INSTALLED. Nothing after that.


"Sue Mosher [MVP-Outlook]" wrote:

Does other VBA code run?



"Ian Sweeney" wrote in message ...
VBA in Outlook 2003 - ThisOutlookSession

This code was working but now it does nothing when I send an email. What
could be the problem?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient
Set objMe = ")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub

--
Ian Sweeney


  #6  
Old March 23rd 06, 11:27 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Item.Recipients.Add

Why did it work when I first added the code? Why did it work when the others
first added the code?


It's impossible to know.

I can't afford to go down the route of paying Verisign vast sums of money
for digital signatures. How can I make this small code snippet work on a
small number of PCs (10)? The users are not technically minded, and not
nearby otherwise I'd do it manually myself.


If you're going to use VBA and not create an add-in, copy the code into each person's VBA environment, run Selfcert.exe to create a certificate for that person, sign the code, and you should be OK.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Ian Sweeney" wrote in message ...
VBA macros were blocked. I have run selfcert.exe and digitally signed the
macro and all seems to be OK at present. Thanks.

I can't afford to go down the route of paying Verisign vast sums of money
for digital signatures. How can I make this small code snippet work on a
small number of PCs (10)? The users are not technically minded, and not
nearby otherwise I'd do it manually myself.

--
Ian Sweeney



I was so pleased when this initially worked that I sent it to seven other
members of the team I'm working with. Looking at the mailbox where the BCC
messages were sent, it appears that they all got it working when they
installed it because I see messages in there from of of them, but ONLY FOR
THE DAY IT WAS INSTALLED. Nothing after that.

VBA in Outlook 2003 - ThisOutlookSession

This code was working but now it does nothing when I send an email. What
could be the problem?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim objMe As Recipient
Set objMe = ")
objMe.Type = olBCC
objMe.Resolve
Set objMe = Nothing
End Sub

--
Ian Sweeney


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I add an item that isn't an appointment? smags Outlook - Calandaring 1 March 22nd 06 07:35 PM
Recipients Objects David Cebrian Add-ins for Outlook 1 March 16th 06 10:05 PM
add toolbar in inspector contact item Irene Outlook and VBA 1 February 24th 06 10:23 PM
drop down list of recipients NamVetMike Outlook - Using Contacts 0 February 23rd 06 02:48 PM
how to block recipients Roberto Outlook - Using Contacts 1 February 4th 06 09:20 PM


All times are GMT +1. The time now is 09:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.