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 / Outlook / Programming Forms / January 2007

Tip: Looking for answers? Try searching our database.

Combined Send and Post Function

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dino - 29 Jan 2007 23:10 GMT
I have created a new form which I want to post into a public folder.  I also
want it e-mailed to specific e-mail addresses.  Is there any way to allow
this to happen?

I have created the form as a "message class" to overcome this problem but it
doesnt appear to be very user friendly as the users need to navigate the
menus to access the form.  It would be neat if I could achieve this function
using the "post class" for the form as I could then set the defalt post for
that folder as my new form.  It appears you cannot do this with a form that
has a "message class".

Cheers,
Dino
Dino - 30 Jan 2007 03:20 GMT
I have assigned a button and am trying to attach some VBScript? code to move
a form to a specific folder then send the e-mail on to the adressee's.  The
code I have used is:

Sub Submit_Click()
Dim objNS
Set objNS = Application.GetNamespace("MAPI").Folders("TEST Folder")
'  "TEST Folder" is a folder in my Mailbox at the same level as the Inbox
Move objNS
send()

End Sub
   
The error message i am getting states that "The operation failed. An object
could not be found"

Is this telling me I have not specified the location correctly or have I
done something else wrong.  My code seems to agree with examples I have found
on teh web.

I appreciate your help.

> I have created a new form which I want to post into a public folder.  I also
> want it e-mailed to specific e-mail addresses.  Is there any way to allow
[quoted text clipped - 9 lines]
> Cheers,
> Dino
Sue Mosher [MVP-Outlook] - 30 Jan 2007 03:57 GMT
This statement would get a store (pst file, mailbox, etc.) with the name "TEST Folder")

   Set objNS = Application.GetNamespace("MAPI").Folders("TEST Folder")

> "TEST Folder" is a folder in my Mailbox at the same level as the Inbox

1) Return the Inbox with Namespace.GetDefaultFolder.
2) Return the Parent of the Inbox >> that's the root of the default information store.
3) Your "TEST Folder" is in the Folders collection of #2:

Set objInbox = Application.Session.GetDefaultFolder(olFolderInbox)
Set myFolder = objInbox.Parent("TEST Folder")
Signature

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
 

>I have assigned a button and am trying to attach some VBScript? code to move
> a form to a specific folder then send the e-mail on to the adressee's.  The
[quoted text clipped - 31 lines]
>> Cheers,
>> Dino
Dino - 30 Jan 2007 04:23 GMT
Hi Sue,

Would this change if I made the store location a sub-folder of my Inbox?

> This statement would get a store (pst file, mailbox, etc.) with the name "TEST Folder")
>
[quoted text clipped - 43 lines]
> >> Cheers,
> >> Dino
Sue Mosher [MVP-Outlook] - 30 Jan 2007 10:58 GMT
"store" = .pst file, Exchange mailbox, etc.

You cannot make a store a subfolder of anything.

If you make the TEST folder a subfolder of the Inbox, then of course the code to access it changes. You wouldn't need to use the Parent of the Inbox.

Signature

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
 

> Hi Sue,
>
[quoted text clipped - 48 lines]
>> >> Cheers,
>> >> Dino
 
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.