AnotherHiggins
Technical User
I want to distribute some macros to a few individuals (as an Add In) and have the macros refer to a shared GroupWise Address Book.
I've put together some code that works for sending email, but am unable to control which Address Book it looks in to find an address.
Here's an example of what I'm using currently:
That works, but only if "Test Group" is in a system-generated Address Book. The recipients listed in the group will periodically change, so I'd like to have a single group in a shared Address Book so I can maintain it without having to update each user's computer.
I've been working on this forever with no luck. Any help would be greatly appreciated.
Thanks,
John
I've put together some code that works for sending email, but am unable to control which Address Book it looks in to find an address.
Here's an example of what I'm using currently:
Code:
strPath = ActiveWorkbook.Path
strName = ActiveWorkbook.name
With New GroupwareTypeLibrary.Application
With .Login
With .MailBox.Messages.Add(Class:="GW.MESSAGE.MAIL")
.Subject.PlainText = "Subject Text"
.Bodytext.PlainText = "Body Text"
.Attachments.Add strPath & "/" & strName
.FromText = "Auto-Generated Email"
[red].Recipients.Add "Test Group"[/red]
.Send
End With
End With
.Quit
End With
I've been working on this forever with no luck. Any help would be greatly appreciated.
Thanks,
John