I am very green with VB and I've created a button that when it's
clicked, it will display results of the entered data in a box on the
screen. What I am having an issue with is displaying the data in the
correct format. I want to display StdDeviation and SigmaM as .0123
but it shows as 1.233339388. Also I want all of the others to be no
longer than 4 decimal places. How do I specify this in the code?
Thanks in advance for any assistance you may be able to offer!
Snow
Private Sub CommandButton1_Click()
Calc
RunSummaryForm.AverageRun12 = Worksheets("Sheet1").Cells(19, 8)
RunSummaryForm.Run1Average = Worksheets("Sheet1").Cells(18, 7)
RunSummaryForm.Run2Average = Worksheets("Sheet1").Cells(18, 8)
RunSummaryForm.DeltaAverage = Worksheets("Sheet1").Cells(19, 6)
RunSummaryForm.SigmaM = Worksheets("Sheet1").Cells(20, 8)
RunSummaryForm.MaxDelta = Worksheets("Sheet1").Cells(21, 6)
RunSummaryForm.StdDeviation = Worksheets("Sheet1").Cells(20, 6)
RunS