Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default How to calculate data that is entered into a text box

Hi all,

I have designed a user form for one of my workbooks that collects data from
the user.

I have three textboxes that collect numeric values.

When a user enters data into TextBox1 only or in both TextBox1 and TextBox2,
and a value is entered into TextBox3, I would like for TextBox4 (or Label1)
to calculate by the figure entered into TextBox3 by the number of textboxes
(either only TextBox1 or both TextBox1 and TextBox2) that have data entered.

For example:

TextBox1 = 100000
TextBox2 = left blank
TextBox3 = 50
therefore TextBox4 (or Label1)= 50

If TextBox2 =200000, then TextBox4 (or Label1) will then equal 100.

I would like for TextBox4 (Label1) to be updated automatically once the user
has moved the focus from TextBox3.

Is this possible?

Thanx in advance.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default How to calculate data that is entered into a text box

Hi,

You can use the "AfterUpdate" or "Exit" event of the textbox to do the
processing

HTH
Kalpesh

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
fomulas for tracking time entered text or data WHGRIT Excel Discussion (Misc queries) 1 July 9th 08 04:48 PM
adding text that appears after the entered data Cindy B Setting up and Configuration of Excel 2 May 5th 08 05:37 PM
Auto calculate formulas when new data is entered Cam1234 Excel Discussion (Misc queries) 6 February 15th 07 05:30 PM
Data not entered yet - formula calculate blank DRondeau Excel Discussion (Misc queries) 1 September 12th 06 05:56 PM
Can a cell be linked to read data entered into a text box ? theltgguy Excel Discussion (Misc queries) 0 May 11th 06 09:15 PM


All times are GMT +1. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"