RE: Sending Emails in Groupwise 7 by JeanGuyMarcil
JeanGuyMarcil
Tue May 06 04:38:00 PDT 2008
"Stephen English" wrote:
> I have been using this code to send emails in Groupwise 6.5 with no problems.
> With Groupwise 7, it fails at the .subject line with message
> "Run Time error '91'
> Object variable or with block variable not set
> It does not like .subject, .addrecipient and yet it brings them up when you
> type a period
>
> docActive.SaveAs strTemp
> docActive.HasRoutingSlip = True
> With docActive.RoutingSlip
> .Subject = "Gifts and Benefits Declaration from " & Me.txtAuthor
> .AddRecipient strEmail(i)
> .Delivery = wdAllAtOnce
> End With
>
> Any ideas please?
I do not know anything about Groupwise, so this is just an educated guess...
If your code did work with Groupwise 6.5, but does not with Groupwise 7, and
given that this is the only difference (You are still using the same OS and
Office versions, right?), then the problem is with Groupwise. The fact that
Word VBA Intellisense offers ".Subject" or ".AddRecipient" has nothing to do
with Groupwise. These Intellisense offers are from the Word object model, not
Groupwise.
It may be that the newest version of Groupwise has different internal
format/procedures, making the information it receives from Word through the
RoutingSlip method no longer compatible... Maybe it no longer likes receiving
variables and only accepts "real" strings...