Visual Basic - error de sintaxis

Life is soft - evento anual de software empresarial
 
Vista:

error de sintaxis

Publicado por Esteban (1 intervención) el 17/11/2014 13:24:54
Amigos, al darle al botón de formulario, nos da error de compilación, sintaxis. Donde puede estar el error?

gracias


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Private Sub CheckBox1_Click()
 
End Sub
 
Private Sub CommandButton1_Click()
Worksheets("Hoja1").Range("B1").Value = Me.ListBox1.Value
Worksheets("Hoja1").Range("C1").Value = Me.TextBox2.Value
Worksheets("Hoja1").Range("D1").Value = Me.TextBox3.Value
Worksheets("Hoja1").Range("E1").Value = Me.TextBox4.Value
Worksheets("Hoja1").Range("F1").Value = Me.TextBox5.Value
Worksheets("Hoja1").Range("G1").Value = Me.TextBox8.Value
Worksheets("Hoja1").Range("H1").Value = Me.TextBox9.Value
Worksheets("Hoja1").Range("I1").Value = Me.CheckBox1.Value
Worksheets("Hoja1").Range("J1").Value = Me.CheckBox2.Value
Worksheets("Hoja1").Range("K1").Value = Me.TextBox10.Value
Ens Sub
 
 
End Sub
 
Private Sub CommandButton2_Click()
TextBox2 = Empty
TextBox3 = Empty
TextBox4 = Empty
TextBox5 = Empty
TextBox8 = Empty
TextBox9 = Empty
TextBox10 = Empty
OptcionButton1 = False
 
End Sub
 
Private Sub Frame1_Click()
 
End Sub
 
Private Sub ListBox1_Click()
ListBox1.ColumnCount = 2
ListBox1.ColumnHeads = True
ListBox1.RowSource = "Tabla2"
 
End Sub
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil
Val: 147
Ha disminuido 1 puesto en Visual Basic (en relación al último mes)
Gráfica de Visual Basic

error de sintaxis

Publicado por Juan Gilberto (323 intervenciones) el 17/11/2014 19:28:30
Normalmente cuando compilas un proyecto o lo ejecutas en tiempo de diseño, este se detiene en la linea donde sucede el error... en cual linea se detiene y que numero de error te da???

A simple vista parece ser que tienes error en todas las lineas donde a un textbox le aplicas la propiedad VALUE y cuando le asignas el valor de EMPTY
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
sin imagen de perfil

error de sintaxis

Publicado por Juan Gabriel (4 intervenciones) el 10/12/2014 20:28:52
al final del Private Sub CommandButton1_Click tienes ens sub el lugar de end sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar