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 and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

VBA shortcut to open custom form in design mode?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 4th 06, 04:40 AM posted to microsoft.public.outlook.program_vba
Burma Jones
external usenet poster
 
Posts: 11
Default VBA shortcut to open custom form in design mode?

There is a custom form that I modify frequently and I was wondering if there is any way to programmatically open the form in design mode? Currently I have to go Tools - Forms - Design a Form - Personal Forms Library - select the form (or double-click) - Open

Thanks
Ads
  #2  
Old March 6th 06, 07:49 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default VBA shortcut to open custom form in design mode?

Am Fri, 3 Mar 2006 20:40:05 -0800 schrieb Burma Jones:

If the Form is published then you should have a button for it in the Actions
menu.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --


There is a custom form that I modify frequently and I was wondering if

there is any way to programmatically open the form in design mode?
Currently I have to go Tools - Forms - Design a Form - Personal Forms
Library - select the form (or double-click) - Open

Thanks

  #3  
Old March 6th 06, 01:08 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default VBA shortcut to open custom form in design mode?

The form will appear on the Actions menu only if you publish it to a folder, and even that won't open it in design mode. Instead, Burma would need to:

1) use the Add method on a target folder's Items collection to create a new item using the form
2) display the item
3) use CommandBars techniques to execute the Tools | Forms | Design This Form command (see http://www.outlookcode.com/d/tips/commandbarfun.htm

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


"Michael Bauer" wrote in message ...
Am Fri, 3 Mar 2006 20:40:05 -0800 schrieb Burma Jones:

If the Form is published then you should have a button for it in the Actions
menu.

There is a custom form that I modify frequently and I was wondering if

there is any way to programmatically open the form in design mode?
Currently I have to go Tools - Forms - Design a Form - Personal Forms
Library - select the form (or double-click) - Open

Thanks

  #4  
Old March 6th 06, 07:14 PM posted to microsoft.public.outlook.program_vba
Burma Jones
external usenet poster
 
Posts: 11
Default VBA shortcut to open custom form in design mode?

What I ended up doing is to use an AutoIT script to do a Sendkeys action:

Sub DesignCustomForm()

Dim RetVal

RetVal = Shell("""C:\Program Files\AutoIt3\AutoIt3.exe"" ""C:\DesignCustomForm.au3""")
SendKeys "%(tfe)"

End Sub

AutoIT script (DesignCustomForm.au3):

WinWaitActive("Design Form")
Opt("SendKeyDelay", 200)
Send("{DOWN}")
Send("{ENTER}")
Exit
"Burma Jones" wrote in message ...
There is a custom form that I modify frequently and I was wondering if there is any way to programmatically open the form in design mode? Currently I have to go Tools - Forms - Design a Form - Personal Forms Library - select the form (or double-click) - Open

Thanks
  #5  
Old March 30th 06, 11:37 AM posted to microsoft.public.outlook.program_vba
FABIODIAS
external usenet poster
 
Posts: 1
Default VBA shortcut to open custom form in design mode?

Here My Friends,

Only 1 line !
CommandBars("Visual Basic").Controls(6).Execute

Regards,
Fabio Dias S.


"Burma Jones" wrote:

What I ended up doing is to use an AutoIT script to do a Sendkeys action:

Sub DesignCustomForm()

Dim RetVal

RetVal = Shell("""C:\Program Files\AutoIt3\AutoIt3.exe"" ""C:\DesignCustomForm.au3""")
SendKeys "%(tfe)"

End Sub

AutoIT script (DesignCustomForm.au3):

WinWaitActive("Design Form")
Opt("SendKeyDelay", 200)
Send("{DOWN}")
Send("{ENTER}")
Exit
"Burma Jones" wrote in message ...
There is a custom form that I modify frequently and I was wondering if there is any way to programmatically open the form in design mode? Currently I have to go Tools - Forms - Design a Form - Personal Forms Library - select the form (or double-click) - Open

Thanks

 




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
VBA shortcut to open custom form in design mode? Burma Jones Outlook - Using Forms 2 March 6th 06 07:17 PM
Design a form gary Outlook - Using Forms 1 February 20th 06 09:31 PM
Code runs in design mode karlman Outlook - Using Forms 2 January 27th 06 05:49 PM
How can I design a task form to have an attachment? SPC Arndt Outlook - Using Forms 4 January 23rd 06 05:51 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 03:01 PM


All times are GMT +1. The time now is 07:55 PM.


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.