Tema: Cmd Limpiar
Ver Mensaje Individual
  #6 (permalink)  
Antiguo 05/12/2005, 09:10
Avatar de reel
reel
 
Fecha de Ingreso: febrero-2004
Ubicación: Managua, Nicaragua
Mensajes: 496
Antigüedad: 21 años, 3 meses
Puntos: 1
Puedes utilizar ese código si te parece.

Código:
Sub IniControls(myForm As Form)
    Dim cCtrl As Control
    For Each cCtrl In myForm.Controls
        If TypeOf cCtrl Is TextBox Then
            cCtrl.Text = ""
        ElseIf TypeOf cCtrl Is ComboBox Then
            If cCtrl.ListCount > 0 Then cCtrl.ListIndex = 0
        End If
    Next
End Sub
Saludes
__________________
Leer es Saber, REEL.
Mi Blog