Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
mully
 
Posts: n/a
Default User Form Formula ?

Hi

On a user form I have 2 Text Boxes in which to enter cash figures Excluding
TAX - on the worksheet these 2 figures enter columns E & G - in column K I
have the formula =IF(SUM(E3+G3)=0"", SUM(E3+G3)*17.5% - If I create a new
Text Box on the user form could it generate the Tax as the formula above and
then on clicking Add Iformation Button it would enter column K thus doing
away with the formula in column K on the worksheet which is sometimes altered
by mistake.

Any help much appreciated

Cheers ---- Mully
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Yes,

you could add

TextBox3.Text = Format(CStr((Val(TextBox1.Text) + Val(TextBox2.Text)) *
0.175), "#,##0.00")

to each textbox change event and dump to the worksheet as with the other
amounts

Worksheets("Sheet1").Range("K2").Text = Textbox3.Text

--
HTH

Bob Phillips

"mully" wrote in message
...
Hi

On a user form I have 2 Text Boxes in which to enter cash figures

Excluding
TAX - on the worksheet these 2 figures enter columns E & G - in column K

I
have the formula =IF(SUM(E3+G3)=0"", SUM(E3+G3)*17.5% - If I create a new
Text Box on the user form could it generate the Tax as the formula above

and
then on clicking Add Iformation Button it would enter column K thus doing
away with the formula in column K on the worksheet which is sometimes

altered
by mistake.

Any help much appreciated

Cheers ---- Mully



  #3   Report Post  
mully
 
Posts: n/a
Default

Hi Bob
Not long till season kicks off again - can we stop Chelse this year????

Right tried what you suggested on entering data in textbox1 & 2 nothing
appears in textbox 3 however on clicking add info - textboxes 1 & 2 info
enters their respective cells on the sheet and on the userform text box 3
then shows 0.00 click add info again and it places 0.00 in column K in the
next row down - what am I doing wrong

Cheers ---- Mully

"Bob Phillips" wrote:

Yes,

you could add

TextBox3.Text = Format(CStr((Val(TextBox1.Text) + Val(TextBox2.Text)) *
0.175), "#,##0.00")

to each textbox change event and dump to the worksheet as with the other
amounts

Worksheets("Sheet1").Range("K2").Text = Textbox3.Text

--
HTH

Bob Phillips

"mully" wrote in message
...
Hi

On a user form I have 2 Text Boxes in which to enter cash figures

Excluding
TAX - on the worksheet these 2 figures enter columns E & G - in column K

I
have the formula =IF(SUM(E3+G3)=0"", SUM(E3+G3)*17.5% - If I create a new
Text Box on the user form could it generate the Tax as the formula above

and
then on clicking Add Iformation Button it would enter column K thus doing
away with the formula in column K on the worksheet which is sometimes

altered
by mistake.

Any help much appreciated

Cheers ---- Mully




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
Can I create a formula in Excel that evaluates form information? SallyP Excel Worksheet Functions 4 June 14th 05 06:40 PM
Formula for Excel User Name Shelll Excel Worksheet Functions 9 May 27th 05 11:01 AM
User Form to Mail Merge mully New Users to Excel 0 May 24th 05 11:45 AM
User Form Picture mully New Users to Excel 3 May 23rd 05 08:32 PM
A "previous" button on a user form Anthony Slater Excel Discussion (Misc queries) 3 November 29th 04 05:57 PM


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

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

About Us

"It's about Microsoft Excel"