• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 144
  • Last Modified:

Calling up another from from a form in outlook98

We have 6 internal forms that we need to creat a menu for.  We would like to use commandbuttons. (1-6)  all of the forms are stord in a "orginasasional forms library" on the exchange server.(ver. 5.0) I can call up each form one at a time.  And they work correctly. But we need to creat a menu form that will be sent to no one.  from that menu they will click a commandbutton and have a form displayed that they can send to there managers.  I can creat the form and the commandbutton but I do not know the correct sintax for the Commandbutton.
an example of the form is that needs to be called from the command button is Move urer request.  If I can get it to work on one form then I can set it up for the others.  I am not a visual basic script programmer so any help or the correct questions that I should be asking will be apreaceated.
SOrry for the spelling
  • 2
  • 2
1 Solution
From the VBA help:

Set myOlApp = CreateObject("Outlook.Application")
Set myNameSpace = myOlApp.GetNameSpace("MAPI")
Set myFolder = myNamespace.GetDefaultFolder(olFolderTasks)
Set myItems = myFolder.Items
Set myItem = myItems.Add("IPM.Task.myTask")

The last line actually creates the item

I have done this with a form in my personal folder.  I don't know what, if anything, you would have to do anything different for an organizational folder.  No access to one here.
bbealeAuthor Commented:
Thank you for your input I will have to look at it.  
If I am not mistaken you are using visual basic.  to open the form.
What I am trying to do is from the tools/forms in the "orginazaional forms Library" (it is a folder that is on the exchange server) when I call up the menu form.
I want an opject "commandbutton" to call up another form.
I need the syntax for that command.
the name of the form is move "user request" I thought it had to be written in visual basic script.  is your axample written in visual basic.  I would offer more points if I had them to offer.
Have you checked this out yet?

This does work and it is Visual Basic, but it is Visual Basic for Applications.  Outlook and the other Office products recognize this 'scaled down' version of VB.

Like I said before, this same code is used in forms that I developed for use in my organization.  Of course, none of my forms are named 'myTask'!!!!  :)
bbealeAuthor Commented:
This does work but I still dont know if it will pull from the orginasasional forms library.  if you have a snipit of code for that it would also be helpful
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now