PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Form Programming Re: customize standart outlook forms

Reply

Re: customize standart outlook forms

 
Thread Tools Rate Thread
Old 03-05-2004, 04:28 PM   #1
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: customize standart outlook forms


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



  Reply With Quote
Old 04-05-2004, 06:41 PM   #2
=?Utf-8?B?am9zZQ==?=
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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)

  Reply With Quote
Old 04-05-2004, 07:03 PM   #3
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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



  Reply With Quote
Old 04-05-2004, 08:16 PM   #4
=?Utf-8?B?am9zZQ==?=
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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

  Reply With Quote
Old 04-05-2004, 08:42 PM   #5
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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



  Reply With Quote
Old 04-05-2004, 10:51 PM   #6
=?Utf-8?B?am9zZQ==?=
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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
  Reply With Quote
Old 04-05-2004, 11:08 PM   #7
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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



  Reply With Quote
Old 05-05-2004, 08:56 AM   #8
=?Utf-8?B?am9zZQ==?=
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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
  Reply With Quote
Old 05-05-2004, 12:24 PM   #9
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: customize standart outlook forms

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



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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