weel I find that out yesterday but still O can't make everything work as I
wanted
to. One of the codes I'm traing to do is supost to send the e-mail to
someone if the checkbox is true or send back to the person that send the form
in the first place if the checkbox is false. The thing is that I can't write
the proper code that make it send back to the person that had send it in the
firt place. here is code I'm tring to use.
Function enviardiretoria_click()
if CheckBox1 = true then
item. to = "(E-Mail Removed)"
item.send
end if
if CheckBox1 = false then
item. to = ("de")
item.send
end if
End Function
Thanks
"Sue Mosher [MVP-Outlook]" escreveu:
> I'm confused. Outlook custom forms don't use VBA. THey use VBScript. So where did you actually write your code?
>
> If this is an Outlook form, did you publish it?
>
> --
> 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
>
>
> "Felipe" <(E-Mail Removed)> wrote in message news:7F90AE75-0B82-4B9D-9780-(E-Mail Removed)...
> > I’m trying to build a form with build in buttons that will send and close the
> > form. They have to send the form to a predetermined e-mail and also have to
> > attend some requirement as the true value of an control. I have written some
> > codes in vba but they don’t work at all. The thing is that looks like the
> > buttons is not even linked to the code I wrote, I press it and nothing at all
> > happened. Here is an example;
> > My button to this code is named: enviardiretoria
> >
> > Private Sub enviardiretoria_Click()
> > If CheckBox1 = True Then
> > Item.To = "(E-Mail Removed)"
> > Item.Send
> > End If
> > If checkbox2 = True Then
> > Item.To = TextBox21
> > Item.Send
> > End If
> > Close
> >
> > End Sub
> >
> > Please help me, thanks in advance
> >
>