PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
Re: customize standart outlook forms
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook Form Programming
Re: customize standart outlook forms
![]() |
Re: customize standart outlook forms |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
What did you do after you designed your form? To make it available for use,
you should publish it with the Tools | Forms | Publish Form command. See http://www.outlookcode.com/d/formpub.htm Outlook forms are not at all the same as VBA userforms. The code behind an Outlook form is VBScript, not VBA. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "jose" <anonymous@discussions.microsoft.com> wrote in message news:22AF1A30-8DB4-4721-A788-F95A61B3D7EA@microsoft.com... > Can I customize the basic outlook forms (ie the meet form), adding new controls with new vba code . > I tried it choosing Tools/Forms/Design forms, but I didn´t get it.Can anyone help me ? > > thanks a million : jose |
|
|
|
#2 |
|
Guest
Posts: n/a
|
Ok, so I can´t use a WinSock Control in a Custom form (ie meeting form) with vba code , thats right
My problem is that I need to make a form, and after send these data to another program via socket what´s the best way to do it ?, I should use another form (not Outlook form) and add it to outlook via add-in COM thanks, (excuse my english) |
|
|
|
#3 |
|
Guest
Posts: n/a
|
If the control is an ActiveX control, you can use it, but the code behind
the form would be VBScript, not VBA. Maybe you can provide a more detailed description of your application, how the user will need to interact with it, and what it will do behind the scenes. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "jose" <anonymous@discussions.microsoft.com> wrote in message news:B1229976-2609-4522-B9E9-152A16BF8EF7@microsoft.com... > Ok, so I can´t use a WinSock Control in a Custom form (ie meeting form) with vba code , thats right ? > > My problem is that I need to make a form, and after send these data to another program via socket , > what´s the best way to do it ?, I should use another form (not Outlook form) and add it to outlook via add-in COM . > > thanks, (excuse my english) > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Mainly I need to get the data stored in a new Item, but these item is associated with a new custom form .The problem is that when I try to do it via de Outlook Object Model I don´t Know the way to get these data .For example, I tried in vba
Dim myFolder As MAPIFolde Dim Itnegociaciones As Item Dim Itnegociacion As Objec Set myFolder = Application.GetNamespace("MAPI").PickFolde Set Itnegociaciones = myFolder.Item Set Itnegociacion = Itnegociaciones.GetFirs itnegociacion. * = Can I put it anything to get the data that I wanted thanks another tim |
|
|
|
#5 |
|
Guest
Posts: n/a
|
See http://www.outlookcode.com/d/propsyntax.htm for a primer on the correct
syntax for working with Outlook properties. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "jose" <anonymous@discussions.microsoft.com> wrote in message news D9B231F-F4A1-4ECE-947B-AEF3A5CCB7C8@microsoft.com...> Mainly I need to get the data stored in a new Item, but these item is associated with a new custom form .The problem is that when I try to do it via de Outlook Object Model I don´t Know the way to get these data .For example, I tried in vba : > > Dim myFolder As MAPIFolder > > Dim Itnegociaciones As Items > Dim Itnegociacion As Object > Set myFolder = Application.GetNamespace("MAPI").PickFolder > Set Itnegociaciones = myFolder.Items > Set Itnegociacion = Itnegociaciones.GetFirst > itnegociacion.* > > * = Can I put it anything to get the data that I wanted ? > > thanks another time > |
|
|
|
#6 |
|
Guest
Posts: n/a
|
thanks for all, but I´ve just tried with the following code and I get an error ... I´m going to be Crazy, could you help me , please .This is the code
Public Sub prueba( Dim myFolder As MAPIFolde Dim Itnegociaciones As Item Dim Itnegociacion As Objec Dim objPage As Pag Dim objControl As Contro Set myFolder = Application.GetNamespace("MAPI").PickFolde Set Itnegociaciones = myFolder.Item Set Itnegociacion = Itnegociaciones.GetFirs Set objPage = Itnegociacion.GetInspector.ModifiedFormPages("gestion cita negociacion" Set objControl = objPage.Controls("TextBox1" where "gestion cita negociacion" is the name of my page in wich I make the new custom form End Su thanks |
|
|
|
#7 |
|
Guest
Posts: n/a
|
What is the error? Which statement produces the error?
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "jose" <anonymous@discussions.microsoft.com> wrote in message news:C34CC011-916D-4B63-BCCF-3E26232672C1@microsoft.com... > thanks for all, but I´ve just tried with the following code and I get an error ... I´m going to be Crazy, could you help me , please .This is the code : > > Public Sub prueba() > > Dim myFolder As MAPIFolder > Dim Itnegociaciones As Items > Dim Itnegociacion As Object > Dim objPage As Page > Dim objControl As Control > > > Set myFolder = Application.GetNamespace("MAPI").PickFolder > Set Itnegociaciones = myFolder.Items > Set Itnegociacion = Itnegociaciones.GetFirst > Set objPage = Itnegociacion.GetInspector.ModifiedFormPages("gestion cita negociacion") > Set objControl = objPage.Controls("TextBox1") > > where "gestion cita negociacion" is the name of my page in wich I make the new custom form . > > End Sub > > thanks |
|
|
|
#8 |
|
Guest
Posts: n/a
|
The error is like
Object variable or with block isn´t establish (that´s a literal translation from spanish, I hope you understand the message) And the break point is : MyValue = objControl.Valu I´ve another question , the code that is shown in http://www.outlookcode.com/d/propsyntax.htm is a vba or vbscript code ? and Can I program it in a COM ADD-IN Thanks a lot : jose |
|
|
|
#9 |
|
Guest
Posts: n/a
|
That error would indicate that an earlier statement instantiating objControl
returned Nothing instead of the actual control object. But it's hard to say without seeing the code context. You really need to keep all the relevant information in your latest message. The newsgroup interface you are using apparently does not quote earlier messages in the thread. Please take the time to quote the original messages. The property syntax examples work in VBA or VBScript. For VBA, of course, you'd want to use typed variable declarations. The same techniques would be available in a COM add-in. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "jose" <anonymous@discussions.microsoft.com> wrote in message news:87DCD64B-C48E-4E1E-81CD-4D371173D0F8@microsoft.com... > The error is like : > Object variable or with block isn´t establish (that´s a literal translation from spanish, I hope you understand the message) . > > And the break point is : MyValue = objControl.Value > > I´ve another question , the code that is shown in http://www.outlookcode.com/d/propsyntax.htm is a vba or vbscript code ? and Can I program it in a COM ADD-IN ? > > Thanks a lot : jose |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

D9B231F-F4A1-4ECE-947B-AEF3A5CCB7C8@microsoft.com...
