Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 80
Default Code Tweek Needed

CANCEL THIS THREAD - SEE NEW THREAD
-----Original Message-----
The cell values in TextBox1 thru 4 show okay, but

TextBox5
thru 8 are blank.

In TextBox4 the sum is 1 - need it to show 100%, and if
not 100%, font: red, bold.

Can someone help me modify this code?

Thanks, Phil

Private Sub CommandButton1_click()
With UserForm2
.TextBox1.Value = Range("B1").Text
.TextBox2.Value = Range("B2").Text
.TextBox3.Value = Range("B3").Text
.TextBox4.Value = Application.Sum(Range("B1:B3"))
.TextBox5.Value = Range("B6").Text
.TextBox6.Value = Range("B7").Text
.TextBox7.Value = Range("B8").Text
.TextBox8.Value = Application.Sum(Range("B6:B8"))
.Show
End With
End Sub

.

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
VBA code needed ernie New Users to Excel 1 March 19th 10 12:45 PM
Fw:code needed ibo Excel Programming 2 August 5th 03 09:30 PM
code needed ibo Excel Programming 0 July 29th 03 05:32 PM


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