You are on page 1of 26

Private Sub Command2_Click()

Dim resucem, rspta2, rspta1, rspta3, rspta4, rspta5 As Integer

'respuesta uno

If Txtfc.Text = "" Then

MsgBox "Ingrese F'C"

Txtfc.SetFocus

Else

rspta1 = Txtfc.Text

End If

If rspta1 < 210 Then

resucem = rspta1 + 70

ElseIf 350 >= rspta1 And rspta1 >= 210 Then

resucem = rspta1 + 84

Else

resucem = rspta1 + 98

End If

txt1.Text = resucem

'respuesta dos

If Comboslump.Text = "slump" Then

MsgBox "Ingrese Slump"

Else

txt2.Text = Comboslump.Text

rspta2 = txt2.Text

lblprueba2.Caption = rspta2
End If

'respuesta tres

If txtdatocemento.Text = "" Then

MsgBox "Ingrese Tipo de Cemento"

Else

datocem = Val(txtdatocemento.Text)

txt3.Text = datocem

End If

'respuesta 4

If txtaguaopc.Visible = True Then

datoagua = txtaguaopc.Text

txt4.Text = datoagua

Else

datoagua = 1000

txt4.Text = datoagua

End If

'respuesta 5

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "3/8" And lblprueba1.Caption = "0"


Then

txt5.Text = 207

rspta5 = Val(txt5.Text)

Else

End If
If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "3/8" And lblprueba1.Caption = "1"
Then

txt5.Text = 181

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "3/8" And lblprueba1.Caption = "0"


Then

txt5.Text = 228

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "3/8" And lblprueba1.Caption = "1"


Then

txt5.Text = 202

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "3/8" And lblprueba1.Caption = "0"


Then

txt5.Text = 243

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "3/8" And lblprueba1.Caption = "1"


Then

txt5.Text = 216

rspta5 = Val(txt5.Text)

Else
End If

'segunda columna

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "1/2" And lblprueba1.Caption = "0"


Then

txt5.Text = 199

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "1/2" And lblprueba1.Caption = "1"


Then

txt5.Text = 175

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "1/2" And lblprueba1.Caption = "0"


Then

txt5.Text = 216

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "1/2" And lblprueba1.Caption = "1"


Then

txt5.Text = 193

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "1/2" And lblprueba1.Caption = "0"


Then

txt5.Text = 228

rspta5 = Val(txt5.Text)
Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "1/2" And lblprueba1.Caption = "1"


Then

txt5.Text = 205

rspta5 = Val(txt5.Text)

Else

End If

'columna 3

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "3/4" And lblprueba1.Caption = "0"


Then

txt5.Text = 190

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "3/4" And lblprueba1.Caption = "1"


Then

txt5.Text = 168

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "3/4" And lblprueba1.Caption = "0"


Then

txt5.Text = 205

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "3/4" And lblprueba1.Caption = "1"


Then
txt5.Text = 184

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "3/4" And lblprueba1.Caption = "0"


Then

txt5.Text = 216

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "3/4" And lblprueba1.Caption = "1"


Then

txt5.Text = 195

rspta5 = Val(txt5.Text)

Else

End If

'columna 4

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "1" And lblprueba1.Caption = "0" Then

txt5.Text = 178

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "1" And lblprueba1.Caption = "1" Then

txt5.Text = 160

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "1" And lblprueba1.Caption = "0" Then

txt5.Text = 193

rspta5 = Val(txt5.Text)
Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "1" And lblprueba1.Caption = "1" Then

txt5.Text = 175

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "1" And lblprueba1.Caption = "0" Then

txt5.Text = 202

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "1" And lblprueba1.Caption = "1" Then

txt5.Text = 184

rspta5 = Val(txt5.Text)

Else

End If

'columna5

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "1 1/2" And lblprueba1.Caption = "0"


Then

txt5.Text = 166

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "1 1/2" And lblprueba1.Caption = "1"


Then

txt5.Text = 150

rspta5 = Val(txt5.Text)

Else
End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "1 1/2" And lblprueba1.Caption = "0"


Then

txt5.Text = 181

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "1 1/2" And lblprueba1.Caption = "1"


Then

txt5.Text = 165

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "1 1/2" And lblprueba1.Caption = "0"


Then

txt5.Text = 190

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "1 1/2" And lblprueba1.Caption = "1"


Then

txt5.Text = 174

rspta5 = Val(txt5.Text)

Else

End If

'columna 6

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "2" And lblprueba1.Caption = "0" Then

txt5.Text = 154

rspta5 = Val(txt5.Text)
Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "2" And lblprueba1.Caption = "1" Then

txt5.Text = 142

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "2" And lblprueba1.Caption = "0" Then

txt5.Text = 169

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "2" And lblprueba1.Caption = "1" Then

txt5.Text = 157

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "2" And lblprueba1.Caption = "0" Then

txt5.Text = 178

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "2" And lblprueba1.Caption = "1" Then

txt5.Text = 166

rspta5 = Val(txt5.Text)

Else

End If

'columna 7
If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "3" And lblprueba1.Caption = "0" Then

txt5.Text = 130

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "3" And lblprueba1.Caption = "1" Then

txt5.Text = 120

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "3" And lblprueba1.Caption = "0" Then

txt5.Text = 145

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "3" And lblprueba1.Caption = "1" Then

txt5.Text = 133

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "3" And lblprueba1.Caption = "0" Then

txt5.Text = 160

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "3" And lblprueba1.Caption = "1" Then

txt5.Text = 144
rspta5 = Val(txt5.Text)

Else

End If

'columna 8

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "6" And lblprueba1.Caption = "0" Then

txt5.Text = 113

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "1-2" And lblprueba3.Caption = "6" And lblprueba1.Caption = "1" Then

txt5.Text = 107

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "6" And lblprueba1.Caption = "0" Then

txt5.Text = 124

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "3-4" And lblprueba3.Caption = "6" And lblprueba1.Caption = "1" Then

txt5.Text = 119

rspta5 = Val(txt5.Text)

Else

End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "6" And lblprueba1.Caption = "0" Then

txt5.Text = 0

rspta5 = Val(txt5.Text)

Else
End If

If lblprueba2.Caption = "6-7" And lblprueba3.Caption = "6" And lblprueba1.Caption = "1" Then

txt5.Text = 0

rspta5 = Val(txt5.Text)

Else

End If

'respuesta 6

If lblprueba3.Caption = "3/8" Then

txt6.Text = 3

rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "1/2" Then

txt6.Text = 2.5

rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "3/4" Then

txt6.Text = 2

rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "1" Then

txt6.Text = 1.5

rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "1 1/2" Then

txt6.Text = 1
rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "2" Then

txt6.Text = 0.6

rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "3" Then

txt6.Text = 0.3

rspta6 = Val(txt6.Text)

Else

End If

If lblprueba3.Caption = "6" Then

txt6.Text = 0.2

rspta6 = Val(txt6.Text)

Else

End If

'RESPUESTA 7

If 150 < resucem And resucem < 200 And lblprueba1.Caption = "0" Then

rspta7 = (((0.8 - 0.7) * (resucem - 200)) / (150 - 200)) + 0.7 - 0.0005

txt7.Text = rspta7

Else

End If

If 150 < resucem And resucem < 200 And lblprueba1.Caption = "1" Then

rspta7 = (((0.71 - 0.61) * (resucem - 200)) / (150 - 200)) + 0.61 - 0.0005

txt7.Text = rspta7

Else

End If

If 200 < resucem And resucem < 250 And lblprueba1.Caption = "0" Then
rspta7 = (((0.7 - 0.62) * (resucem - 250)) / (200 - 250)) + 0.62 - 0.0005

txt7.Text = rspta7

Else

End If

If 200 < resucem And resucem < 250 And lblprueba1.Caption = "1" Then

rspta7 = (((0.61 - 0.53) * (resucem - 250)) / (200 - 250)) + 0.53 - 0.0005

txt7.Text = rspta7

Else

End If

If 250 < resucem And resucem < 300 And lblprueba1.Caption = "0" Then

rspta7 = (((0.62 - 0.55) * (resucem - 300)) / (250 - 300)) + 0.55 - 0.0005

txt7.Text = rspta7

Else

End If

If 250 < resucem And resucem < 300 And lblprueba1.Caption = "1" Then

rspta7 = (((0.53 - 0.46) * (resucem - 300)) / (250 - 300)) + 0.46 - 0.0005

txt7.Text = rspta7

Else

End If

If 300 < resucem And resucem < 350 And lblprueba1.Caption = "0" Then

rspta7 = (((0.49 - 0.43) * (resucem - 350)) / (300 - 350)) + 0.43 - 0.0005

txt7.Text = rspta7

Else

End If

If 300 < resucem And resucem < 350 And lblprueba1.Caption = "0" Then

rspta7 = (((0.46 - 0.4) * (resucem - 350)) / (300 - 350)) + 0.4 - 0.0005

txt7.Text = rspta7

Else
End If

'respuesta 8

rspta8 = rspta5 / rspta7

txt8.Text = rspta8

'respuesta 9

If 240 < resucem < 260 And lblprueba3.Caption = "3/8" Then

rspta99 = (((0.48 - 0.5) * ((resucem / 100) - 2.4)) / (2.6 - 2.4)) + 0.5

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "3/8" Then

rspta99 = (((0.46 - 0.48) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.48

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "3/8" Then

rspta99 = (((0.44 - 0.46) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.46

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'fila 2

If 240 < resucem < 260 And lblprueba3.Caption = "1/2" Then

rspta99 = (((0.57 - 0.59) * ((resucem / 100) - 2.4)) / (2.6 - 2.4)) + 0.59


lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "1/2" Then

rspta99 = (((0.55 - 0.57) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.57

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "1/2" Then

rspta99 = (((0.53 - 0.55) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.55

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'fila3

If 240 < resucem < 260 And lblprueba3.Caption = "3/4" Then

rspta99 = (((0.64 - 0.66) * ((resucem / 100) - 2.4)) / (2.4 - 2.6)) + 0.66

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "3/4" Then

rspta99 = (((0.62 - 0.64) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.64

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99


txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "3/4" Then

rspta99 = (((0.6 - 0.62) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.62

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'fila4

If 240 < resucem < 260 And lblprueba3.Caption = "1" Then

rspta99 = (((0.69 - 0.71) * ((resucem / 100) - 2.4)) / (2.4 - 2.6)) + 0.71

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "1" Then

rspta99 = (((0.67 - 0.69) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.69

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "1" Then

rspta99 = (((0.65 - 0.67) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.67

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else
End If

'fila5

If 240 < resucem < 260 And lblprueba3.Caption = "1 1/2" Then

rspta99 = (((0.74 - 0.76) * ((resucem / 100) - 2.4)) / (2.4 - 2.6)) + 0.76

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "1 1/2" Then

rspta99 = (((0.72 - 0.74) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.74

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "1 1/2" Then

rspta99 = (((0.7 - 0.72) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.72

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'fila6

If 240 < resucem < 260 And lblprueba3.Caption = "2" Then

rspta99 = (((0.76 - 0.78) * ((resucem / 100) - 2.4)) / (2.4 - 2.6)) + 0.78

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If
If 260 < resucem < 280 And lblprueba3.Caption = "2" Then

rspta99 = (((0.74 - 0.76) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.76

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "2" Then

rspta99 = (((0.72 - 0.74) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.74

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'fila7

If 240 < resucem < 260 And lblprueba3.Caption = "3" Then

rspta99 = (((0.79 - 0.81) * ((resucem / 100) - 2.4)) / (2.4 - 2.6)) + 0.81

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "3" Then

rspta99 = (((0.77 - 0.79) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.79

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "3" Then

rspta99 = (((0.75 - 0.77) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.77


lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'fila8

If 240 < resucem < 260 And lblprueba3.Caption = "6" Then

rspta99 = (((0.85 - 0.87) * ((resucem / 100) - 2.4)) / (2.4 - 2.6)) + 0.87

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 260 < resucem < 280 And lblprueba3.Caption = "6" Then

rspta99 = (((0.83 - 0.85) * ((resucem / 100) - 2.6)) / (2.8 - 2.6)) + 0.85

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

If 280 < resucem < 300 And lblprueba3.Caption = "6" Then

rspta99 = (((0.81 - 0.83) * ((resucem / 100) - 2.8)) / (3 - 2.8)) + 0.83

lblprueba4.Caption = rspta99

rspta9 = Val(txtdato6.Text) * rspta99

txt9.Text = rspta9

Else

End If

'respuesta 10

txt10ag.Text = rspta9 / Val(txtdato4.Text)

txt10cem.Text = Val(txt8.Text) / Val(txt3.Text)

txt10agua.Text = Val(txt5.Text) / Val(txt4.Text)


txt10aire.Text = Val(txt6.Text) / 100

txt10sum.Text = Val(txt10ag) + Val(txt10cem) + Val(txt10agua) + Val(txt10aire)

txt10af.Text = 1 - Val(txt10sum.Text)

'respuesta 11

txt11cem.Text = Val(txt8.Text)

txt11agua.Text = Val(txt5.Text)

txt11ag.Text = Val(txt9.Text)

txt11af.Text = Val(txt10af.Text) * Val(txtdato5.Text)

'respuesta 12

txt12ag.Text = Val(txt9.Text) * ((Val(txtdato10.Text) / 100) + 1)

txt12af.Text = Val(txt11af.Text) * ((Val(txtdato11.Text) / 100) + 1)

'respuesta 13

txt13ag.Text = (Val(txtdato10.Text) - Val(txtdato8.Text)) / 100

txt13af.Text = (Val(txtdato11.Text) - Val(txtdato9.Text)) / 100

'respuesta 14

txt14ag.Text = Val(txt9.Text) * Val(txt13ag.Text)

txt14af.Text = Val(txt11af.Text) * Val(txt13af.Text)

'respuesta 15

txt15.Text = Val(txt5.Text) - (Val(txt14ag.Text) + Val(txt14af.Text))

'respesta 16

txt16cem.Text = Val(txt8.Text)

txt16agua.Text = Val(txt15.Text)

txt16ag.Text = Val(txt12ag.Text)

txt16af.Text = Val(txt12af.Text)

'respuesta 17

lbl17cem.Caption = Val(txt16cem.Text) / Val(txt16cem.Text)

lbl17af.Caption = Val(txt16af.Text) / Val(txt16cem.Text)

lbl17ag.Caption = Val(txt16ag.Text) / Val(txt16cem.Text)

'respuesta 18

txt18.Text = Val(txt15.Text) / (Val(txt8.Text) / 42.5)


End Sub

Private Sub Command4_Click()

Unload Me

End Sub

Private Sub Command5_Click()

'Si est seleccionado el Option1 se ejecuta la siguiente condicin

If Option1.Value = True Then

txtdatocemento.Text = 3140

End If

'Si est seleccionado el Option2 esta

'Si est seleccionado el Option3 se ejecuta esta otra

If Option3.Value = True Then

txtdatocemento.Text = 3150

End If

End Sub

Private Sub Form_Load()

Dim aire, slump As Integer

Dim tmn As String


End Sub

Private Sub Label48_Click()

End Sub

Private Sub Option1_Click()

If Option1.Value = True Then

txtdatocemento.Text = 3140

End If

End Sub

Private Sub Option2_Click()

If Option2.Value = True Then

txtdatocemento.Text = "0"

End If

End Sub

Private Sub Option3_Click()

If Option3.Value = True Then

txtdatocemento.Text = 3150

End If

End Sub

Private Sub Option4_Click()

If Option4.Value = True Then

txtdatocemento.Text = 2820

End If

End Sub
Private Sub Option5_Click()

If Option5.Value = True Then

txtdatocemento.Text = 2920

End If

End Sub

Private Sub Option6_Click()

If Option6.Value = True Then

txtdatocemento.Text = "sin dato"

End If

End Sub

Private Sub Option7_Click()

If Option7.Value = True Then

lblprueba1.Caption = 1

aire = lblprueba1.Caption

End If

End Sub

Private Sub Option8_Click()

If Option8.Value = True Then

lblprueba1.Caption = 0

aire = lblprueba1.Caption

End If

End Sub

Private Sub txtdato10_Change()

lbl5.ForeColor = RGB(0, 0, 64)


txtdato10.BackColor = RGB(255, 255, 0)

lbl5.Font.Bold = True

End Sub

Private Sub txtdato11_Change()

txtdato11.BackColor = RGB(255, 255, 0)

End Sub

Private Sub txtdato2_Change()

lbl1.ForeColor = RGB(0, 0, 64)

txtdato2.BackColor = RGB(255, 255, 0)

lbl1.Font.Bold = True

End Sub

Private Sub txtdato3_Change()

txtdato3.BackColor = RGB(255, 255, 0)

End Sub

Private Sub txtdato4_Change()

lbl2.ForeColor = RGB(0, 0, 64)

txtdato4.BackColor = RGB(255, 255, 0)

lbl2.Font.Bold = True

End Sub

Private Sub txtdato5_Change()

txtdato5.BackColor = RGB(255, 255, 0)

End Sub

Private Sub txtdato6_Change()

lbl3.ForeColor = RGB(0, 0, 64)

txtdato6.BackColor = RGB(255, 255, 0)


lbl3.Font.Bold = True

End Sub

Private Sub txtdato7_Change()

txtdato7.BackColor = RGB(255, 255, 0)

End Sub

Private Sub txtdato8_Change()

lbl4.ForeColor = RGB(0, 0, 64)

txtdato8.BackColor = RGB(255, 255, 0)

lbl4.Font.Bold = True

End Sub

Private Sub txtdato9_Change()

txtdato9.BackColor = RGB(255, 255, 0)

End Sub

You might also like