You declared these things:
Dim NetLoad As Variant
Dim AveCoatWt As Variant
Dim WtGain As Variant
Dim solutionapplied As Variant
But you never set them to anything.
What are they?
saziz wrote:
I am trying to write a code to calculate efficiency of a process. The
following code gives me "Object Required' Error Please educate me.
Private Sub CommandButton1_Click()
Dim NetLoad As Variant
Dim AveCoatWt As Variant
Dim WtGain As Variant
Dim solutionapplied As Variant
NetLoad.Value = TextBox1.Text
AveCoatWt.Value = TextBox2.Text
WtGain.Value = TextBox3.Text
solutiionapplied.Value = TextBox4.Text
TextBox5.Value = (TextBox4 / ((TextBox1 * TextBox2 * 1000000) *
TextBox3))
End Sub
Thank you for your help.
Syed
--
saziz
------------------------------------------------------------------------
saziz's Profile: http://www.excelforum.com/member.php...fo&userid=6350
View this thread: http://www.excelforum.com/showthread...hreadid=477205
--
Dave Peterson