Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / April 2007

Tip: Looking for answers? Try searching our database.

.Subject=<object variable or with variable not set>

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WP - 25 Apr 2007 18:42 GMT
I am trying to be able to have my code send an email via lotus notes

here is all my code:
Private Sub CommandButton1_Click()

   With ActiveDocument
       .Bookmarks("UserName").Range.InsertBefore TextBox1
       .Bookmarks("requesttype").Range.InsertBefore TextBox2
       .Bookmarks("qty").Range.InsertBefore TextBox3
       .Bookmarks("purpose").Range.InsertBefore TextBox4
       .Bookmarks("describe").Range.InsertBefore TextBox5
       .Bookmarks("other").Range.InsertBefore TextBox6
       .Bookmarks("busarea").Range.InsertBefore ComboBox1
       .Bookmarks("En").Range.InsertBefore CheckBox1
       .Bookmarks("fr").Range.InsertBefore CheckBox2
       .Bookmarks("subdate").Range.InsertBefore Calendar1
       .Bookmarks("datedue").Range.InsertBefore Calendar2
       .Bookmarks("evtdate").Range.InsertBefore Calendar3
       
 
End With

ActiveDocument.HasRoutingSlip = True
With ActiveDocument.RoutingSlip
       .Subject = "Request for literature"
       .AddRecipient "xxx@yyyt.com"
       .AddRecipient "xxx@yyy.com"
       .Delivery = wdAllAtOnce
ActiveDocument.Route

End With

UserForm1.Hide

when I test the form the debugger comes up with
.Subject = "Request for literature" highlighted and when I mouse over the
highlighted code it says .Subject=<object variable or with variable not set>

TIA
WP
Doug Robbins - Word MVP - 25 Apr 2007 19:44 GMT
As a guess, I would think that Word does not support the use of Lotus Notes.

Signature

Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP

>I am trying to be able to have my code send an email via lotus notes
>
[quoted text clipped - 36 lines]
> TIA
> WP
WP - 25 Apr 2007 19:56 GMT
Hi Doug
What about the mapi function??
Any ideas??

> As a guess, I would think that Word does not support the use of Lotus Notes.
>
[quoted text clipped - 38 lines]
> > TIA
> > WP
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.