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

shortcut



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old August 22nd 07, 06:02 PM posted to microsoft.public.outlook.program_forms
Joel Allen
external usenet poster
 
Posts: 117
Default shortcut

Hello,

I have a custom form with code. Is there a way to make a Desktop shortcut,
or a button in Outlook that will open the form?

I tried saving a copy of the form (as an .oft file) - the form opened but
the code did not run.

Any idea?

Thanks,
Joel


Ads
  #2  
Old August 22nd 07, 10:11 PM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default shortcut

In article , Joel Allen wrote:
I tried saving a copy of the form (as an .oft file) - the form opened but
the code did not run.

Any idea?

It is by design that code does not run when a form is opened from a .oft
file. You need to publish it to your Exchange Organization Forms Library,
or the personal forms library in your Outlook .pst file, and then run it
from Outlook. If it is a .oft file, it is not trusted. If it is a
published form, then it is a trusted object, and the code will run.

--
Hollis Paul
Mukilteo, WA USA


  #3  
Old August 22nd 07, 10:17 PM posted to microsoft.public.outlook.program_forms
Joel Allen
external usenet poster
 
Posts: 117
Default shortcut

Thanks Paul. I have it published, and everything works ok. But how can I
make a shortcut to open up the form? I don't want to click File, New,
Choose Form..... I have many forms that I use, so it would be nice to have
shortcuts.

Thanks again for your help,
Joel


"Hollis Paul" wrote in message
...
In article , Joel Allen wrote:
I tried saving a copy of the form (as an .oft file) - the form opened but
the code did not run.

Any idea?

It is by design that code does not run when a form is opened from a .oft
file. You need to publish it to your Exchange Organization Forms Library,
or the personal forms library in your Outlook .pst file, and then run it
from Outlook. If it is a .oft file, it is not trusted. If it is a
published form, then it is a trusted object, and the code will run.

--
Hollis Paul
Mukilteo, WA USA




  #4  
Old August 23rd 07, 02:46 AM posted to microsoft.public.outlook.program_forms
Hollis Paul
external usenet poster
 
Posts: 242
Default shortcut

In article , Joel Allen wrote:
Thanks Paul. I have it published, and everything works ok. But how can I
make a shortcut to open up the form? I don't want to click File, New,
Choose Form..... I have many forms that I use, so it would be nice to have
shortcuts.

It depends what you want the forms to do. I have a bunch of action forms that
I open up to run some code behind the form. These I give a name that begins
with a number so they sit at the very beginning of default folder of that
type. When I close the form I opened to run code, I don't save any changes
that may have been made programmatically to the form.

You can also add custom buttons to custom toolbars and run them as add-ins to
Outlook. However, you have to have the knowledge of how to create COM Add-ins
with Visual Studio, have Visual Studio itself, and know a dot net programming
language, and how to get an add-in working. There are many custom add-ins
available for purchase which may do the trick. Go to www.slipstick.com and
browse through the utilities section.

Another thing you can do is write a macro that opens your desired form, give
it a recognizable name and run it from the GUI behind the Alt-F8 key. I have
an example of this in a Office Automation Example located at this URL:

Automating Tip Capture with Office Systems 2003 - Part 2
http://msmvps.com/blogs/obts/archive.../19/71693.aspx


--
Hollis Paul
Mukilteo, WA USA


  #5  
Old September 4th 07, 02:01 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default shortcut

Use the /c switch with outlook.exe. See http://www.outlookcode.com/article.aspx?id=56

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Joel Allen" wrote in message ...
Thanks Paul. I have it published, and everything works ok. But how can I
make a shortcut to open up the form? I don't want to click File, New,
Choose Form..... I have many forms that I use, so it would be nice to have
shortcuts.

Thanks again for your help,
Joel


"Hollis Paul" wrote in message
...
In article , Joel Allen wrote:
I tried saving a copy of the form (as an .oft file) - the form opened but
the code did not run.

Any idea?

It is by design that code does not run when a form is opened from a ..oft
file. You need to publish it to your Exchange Organization Forms Library,
or the personal forms library in your Outlook .pst file, and then run it
from Outlook. If it is a .oft file, it is not trusted. If it is a
published form, then it is a trusted object, and the code will run.

--
Hollis Paul
Mukilteo, WA USA




  #6  
Old September 5th 07, 01:22 AM posted to microsoft.public.outlook.program_forms
Joel Allen
external usenet poster
 
Posts: 117
Default shortcut

Thanks Sue. This actually just opened up a standard task. My custom form
is in one of the public folders. Am I doing something wrong? It works for
one of my other custom forms (which is the default form) but not for the
form called ProfilitDocuments.

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /c
"IPM.Task.ProfilitDocuments"

Thanks, Joel

"Sue Mosher [MVP-Outlook]" wrote in message
...
Use the /c switch with outlook.exe. See
http://www.outlookcode.com/article.aspx?id=56

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Joel Allen" wrote in message
...
Thanks Paul. I have it published, and everything works ok. But how can I
make a shortcut to open up the form? I don't want to click File, New,
Choose Form..... I have many forms that I use, so it would be nice to
have
shortcuts.

Thanks again for your help,
Joel


"Hollis Paul" wrote in message
...
In article , Joel Allen wrote:
I tried saving a copy of the form (as an .oft file) - the form opened
but
the code did not run.

Any idea?

It is by design that code does not run when a form is opened from a .oft
file. You need to publish it to your Exchange Organization Forms
Library,
or the personal forms library in your Outlook .pst file, and then run it
from Outlook. If it is a .oft file, it is not trusted. If it is a
published form, then it is a trusted object, and the code will run.

--
Hollis Paul
Mukilteo, WA USA






  #7  
Old September 5th 07, 02:43 PM posted to microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default shortcut

The only thing you've done wrong is neglect to tell us that this was a form published in a public folder. You can't use a simple shortcut to launch such a form. You can, however, display that folder and launch the form from its Actions menu.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


"Joel Allen" wrote in message ...
Thanks Sue. This actually just opened up a standard task. My custom form
is in one of the public folders. Am I doing something wrong? It works for
one of my other custom forms (which is the default form) but not for the
form called ProfilitDocuments.

"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /c
"IPM.Task.ProfilitDocuments"

Thanks, Joel

"Sue Mosher [MVP-Outlook]" wrote in message
...
Use the /c switch with outlook.exe. See
http://www.outlookcode.com/article.aspx?id=56

"Joel Allen" wrote in message
...
Thanks Paul. I have it published, and everything works ok. But how can I
make a shortcut to open up the form? I don't want to click File, New,
Choose Form..... I have many forms that I use, so it would be nice to
have
shortcuts.


 




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
QL Shortcut Tim Quigley Outlook - Installation 0 June 5th 07 04:35 PM
shortcut? DOH! Outlook - Using Contacts 4 February 8th 07 04:21 PM
shortcut Squibbly Outlook - General Queries 1 August 4th 06 05:09 PM
Shortcut for OE new message? Jack Crane Outlook Express 6 March 16th 06 06:51 PM
shortcut John Garate Outlook Express 3 January 20th 06 11:56 PM


All times are GMT +1. The time now is 06:45 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.