Combined Send and Post Function

D

Dino

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
 
D

Dino

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.
 
S

Sue Mosher [MVP-Outlook]

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")
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
S

Sue Mosher [MVP-Outlook]

"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.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top