I still haven´t solved my forms problem .

J

jose

I don´t Know if what I´m trying to do is right or it´s possible with outlook and vba (or another way)
I´m trying to get the value( via vba) of a new custom control that I made in a new custom form
This is my vba code

Public Sub getcontrol(

Dim MyFolder As MAPIFolde
Dim objPage As Pag

'here a pick my cutom Folder in which I published my new custom for
Set MyFolder = Application.GetNamespace("MAPI").PickFolde
Set Itneg = MyFolder.Items.GetFirs
' I try to get the page in which I have a new custom textbo
Set objPage = Itneg.GetInspector.ModifiedFormPages("My Custom page"
Set objControl = objPage.Controls("TextBox1"

End Su

As I said, I don´t Know if it´s possible, if samebody can help me I´d be gratefull
Thanks a millio
(Excuse my English )
 
S

Sue Mosher [MVP-Outlook]

Does the Itneg item -- the one you get with GetFirst -- actually use the
custom form? That would be one explanation for the problem. Another would be
a typographical error in either the name of the page or the name of the
control.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



jose said:
I don´t Know if what I´m trying to do is right or it´s possible with
outlook and vba (or another way).
 
S

Sue Mosher [MVP-Outlook]

What custom control? The newsgroup interface you are using apparently does
not quote earlier messages in the thread, so we don't know what you're
talking about. If you want people to follow the thread, you need to take the
time to quote the earlier message(s).

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



jose said:
I change the default form for the itneg item to my new custom form
..Currently this item is into my calendar folder (the one that I pick in the
PickFolder method) , and in this folder I publish my new custom form .
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top