LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Help with userform labels

I'm trying to create a simple total displayed in a label. Basically, I
have twelve entries for price and quantity. I'm trying to have a label
(label 23 below) show the total as the user fills in the data.

The total label works if all price and quantity fields are filled.

Private Sub q7_Exit(ByVal Cancel As MSForms.ReturnBoolean)

On Error Resume Next
Label19 = q7 * price7

On Error Resume Next
Label23 = ((price1 * q1) + (price2 * q2) + (price3 * q3) + (price4 *
q4) + (price5 * q5) + (price6 * q6) + (price7 * q7) + (price8 * q8) +
(price9 * q9) + (price10 * q10) + (price11 * q11) + (price12 * q12))

End Sub


Thanks

 
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
userform labels RobcPettit[_2_] Excel Programming 2 September 1st 06 07:23 PM
Copying labels to Userform at runtime. Henry[_5_] Excel Programming 5 June 8th 05 11:47 PM
How to create labels in a UserForm dynamically and be able to resize them with the mouse. Pierre Archambault Excel Programming 0 November 23rd 04 08:39 PM
Vertical Alignment of text in Userform labels dht Excel Programming 1 June 16th 04 01:58 PM
Common format for Labels in Userform [email protected] Excel Programming 3 May 13th 04 11:14 AM


All times are GMT +1. The time now is 09:59 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"