A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Combined Send and Post Function



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 29th 07, 11:10 PM posted to microsoft.public.outlook.program_forms
Dino
external usenet poster
 
Posts: 9
Default Combined Send and Post Function

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

Ads
  #2  
Old January 30th 07, 03:20 AM posted to microsoft.public.outlook.program_forms
Dino
external usenet poster
 
Posts: 9
Default Combined Send and Post Function

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.

"Dino" wrote:

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

  #3  
Old January 30th 07, 03:57 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Combined Send and Post Function

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Dino" wrote in message ...
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.

"Dino" wrote:

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

  #4  
Old January 30th 07, 04:23 AM posted to microsoft.public.outlook.program_forms
Dino
external usenet poster
 
Posts: 9
Default Combined Send and Post Function

Hi Sue,

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

"Sue Mosher [MVP-Outlook]" wrote:

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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Dino" wrote in message ...
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.

"Dino" wrote:

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


  #5  
Old January 30th 07, 10:58 AM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Combined Send and Post Function

"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
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Dino" wrote in message ...
Hi Sue,

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

"Sue Mosher [MVP-Outlook]" wrote:

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

"Dino" wrote in message ...
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.

"Dino" wrote:

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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Send an email when a post item is posted to a particular folder [email protected] Outlook and VBA 1 September 18th 06 08:29 PM
Send Function Stopped Working B17 Outlook Express 5 June 22nd 06 03:22 PM
How to bookmark or send copy of a particular post sheana Outlook Express 1 June 22nd 06 01:25 AM
Send From function in Outlook 2003 cruwyser Outlook - General Queries 1 May 24th 06 01:52 PM
OE very slow to send post in MS newsgroups Gordon Outlook Express 4 April 29th 06 08:06 AM


All times are GMT +1. The time now is 06:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.