Concatenar valores dentro del cell.find
Buenas tardes,
Mi consulta es con respecto al siguiente programa que estoy tratando de hacer:
Private Sub CommandButton1_Click()
'1
Sheets("Historial Motores").Select
Range("A5").Select
a = TextBox1.Value & TextBox9.Value
[A:A].Find(What:=a, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate
ActiveCell.Offset(0, 4).Select
TextBox2 = ActiveCell
End Sub
o
Private Sub CommandButton1_Click()
'1
Sheets("Historial Motores").Select
Range("A5").Select
[A:A].Find(What:= TextBox1.Value & TextBox9.Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate
ActiveCell.Offset(0, 4).Select
TextBox2 = ActiveCell
End Sub
Ya intente tambien colocando textbox1.text & textbox9.text y no me funcionan ninguna de estas alternativas.
Quisisera saber si es posible realizar esta concatenacion, o si hay alguna otra manera de poder realizarla.
Saludos
Mi consulta es con respecto al siguiente programa que estoy tratando de hacer:
Private Sub CommandButton1_Click()
'1
Sheets("Historial Motores").Select
Range("A5").Select
a = TextBox1.Value & TextBox9.Value
[A:A].Find(What:=a, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate
ActiveCell.Offset(0, 4).Select
TextBox2 = ActiveCell
End Sub
o
Private Sub CommandButton1_Click()
'1
Sheets("Historial Motores").Select
Range("A5").Select
[A:A].Find(What:= TextBox1.Value & TextBox9.Value, After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate
ActiveCell.Offset(0, 4).Select
TextBox2 = ActiveCell
End Sub
Ya intente tambien colocando textbox1.text & textbox9.text y no me funcionan ninguna de estas alternativas.
Quisisera saber si es posible realizar esta concatenacion, o si hay alguna otra manera de poder realizarla.
Saludos
1 respuesta
Respuesta de Cadipas spain
1