![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |