Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/05/2008, 12:31
Avatar de David
David
Moderador
 
Fecha de Ingreso: abril-2005
Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 20 años
Puntos: 839
Re: Remplazar nombre boton por variable

Cita:
Iniciado por alberto4888 Ver Mensaje
Se me olvido decirte que lo estoy haciendo desde acces.
Entonces estás haciendo con Macros, bueno, podrías hacer así:
Código:
On Error Resume Next
Dim Count As Long
For Count = 0 To Me.Controls.Count
    If Left(Me.Controls(Count).Name, 2) <> "B1" Then
    Else
        Me.Controls(Count).Visible = True
    End If
Next Count
Edito el mensaje porque se me ocurrió esta idea mejor
__________________
Por favor, antes de preguntar, revisa la Guía para realizar preguntas.

Última edición por David; 06/05/2008 a las 12:37 Razón: Modificar código