p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

vba_outlook thread: Re: Where to put the code for a Text Box


Message #1 by "joe schoemann" <joe@t...> on Sun, 16 Mar 2003 05:22:13
Hi Joe,

Everytime I put it in the validation field and click
ok I get an Program Error message from Outllok stating
that Outlook has Generated errors and will be closed
by Windows.

Thanks,
Judy
--- joe schoemann <joe@t...> wrote:
> > I am new to VBA_Outlook but have been programming
> in VB. I have created 
> a 
> n> ew form in Outlook and in this form I created
> several Text Boxes. My 
> p> roblem now is how do I get the total of the text
> boxes to display in 
> my 
> t> otal text box? In VB I just double click on the
> text box itself and 
> the 
> c> ode view window appears and I type the syntax. In
> Outlook Form I can't 
> s> eem to find where I am suppose to put in the
> code. Is the code 
> different 
> f> rom VB. I will code the VB with the following
> code:
> 
> > txtTotal.text = txtText1.Text + txtText2.Text
> 
> > is this the right syntax for VBA? Please guide me.
> 
> > Thanks,
> J> udy 
> Try 
> txtTotal.text = str(val(txtText1.Text) +
> val(txtText2.Text))


__________________________________________________
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
http://webhosting.yahoo.com

  Return to Index