Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Phrosphor
Feb 25, 2007

Urbanisation

Good Morning, I have a bit of a problem and I am really hoping someone can help.

One of our clients has just switched to using shared mailboxes for their users, sales, admin, orders etc. What they want, is for outlook to use one of the shared mailboxes as the default account for sending. Now, I know this isn't supported by default, but I found an article where somebody was setting up custom buttons attached to macros that would change to a default address, this was for users using lots of different accounts rather than shared mailboxes however.

Does anyone know if this can be done with shared mailboxes as well? I have been trying to replicate it but have been unsuccesful so far.

code:
Dim oAccount As Outlook.Account
Dim oMail As Outlook.MailItem

For Each oAccount In Application.Session.Accounts
If oAccount = "Name of Default Account" Then
Set oMail = Application.CreateItem(olMailItem)
oMail.SendUsingAccount = oAccount
oMail.Display
End If
Next
End Sub
Here is the example used in the article. Any advice?

Edit: Apparently tab = post.

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply