Te agradezco me ayudes Elsa, aquí tengo todos los códigos con los que estoy trabajando.
Es un proyecto que tiene 50 hojas y quiero insertar datos con mi formulario a cualquiera de estas hojas que tienen el mismo formato, pero que no me muestre la hoja seleccionada donde fueron insertados al hacer click en mi botón insertar datos.
Private Sub CommandButton1_Click()
Sheets(ComboBox1.Value).Select
Dim fila As Integer
Dim final As Integer
For fila = 7 To 37
If Cells(fila, 2) = "" Then
Cells(fila, 2) = TextBox2.Text
Cells(fila, 3) = TextBox3.Text
Cells(fila, 4) = TextBox4.Text
Cells(fila, 8) = TextBox5.Text
Cells(fila, 9) = TextBox6.Text
Cells(fila, 10) = TextBox7.Text
final = fila - 1
Exit For
End If
Next
End Sub
_____________________________________________________________________________________________
Private Sub CommandButton2_Click()
End
End Sub
_____________________________________________________________________________________________
Private Sub UserForm_Initialize()
For i = 55 To Sheets.Count
ComboBox1.AddItem (Sheets(i).Name)
Next i
ComboBox1.ListIndex = 0
End Sub