0% found this document useful (0 votes)
20 views

Code For Menu Deslizable

The document contains VBA code for a userform interface with buttons for products, clients, quotes, company, providers and reports. Mouse movement over each button changes its label and size.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views

Code For Menu Deslizable

The document contains VBA code for a userform interface with buttons for products, clients, quotes, company, providers and reports. Mouse movement over each button changes its label and size.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 14

THIS FILE CONTAINS THE CODES USED IN THE VIDEO SO THAT YOU CAN PRACTICE THE

TUTORIAL
IF YOU WOULD LIKE US TO CONTINUE MAKING THIS TYPE OF MATERIAL, PLEASE SHARE THE
VIDEO, LIKE AND SUBSCRIBE TO THE CHANNEL, THANK YOU!!

EN ESTE ARCHIVO DEJO LOS CODIGOS DEL VIDEO CON LOS CUALES PUEDES PRACTICAR EL
TUTORIAL
PARA QUE SIGAMOS HACIENDO ESTE TIPO DE MATERIAL PORFA COMPARTE EL VIDEO DALE LIKE Y
SUSCRIBETE AL CANAL, GRACIAS!!

-----------------------------------------------------------------------------------
--------------------------------
Private Sub UserForm_Initialize()

With Me
' .Left = 0
.Height = Application.Height
.Width = Application.Width
End With
End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub IPR_Click()
SPRD.Show
End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub ICL_Click()
CLIE.Show
End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub IPV_Click()
PROV.Show
End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub ICE_Click()
Unload Me
End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub ICE_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lem.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 132
Lce.Caption = "Cerrar"
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = True

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub ICF_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lem.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 132
Lcf.Caption = "Config."
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = True
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub ICL_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 132
Lcl.Caption = "Clientes"
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = True
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub ICO_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 132
Lco.Caption = "Cotizacion"
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = True
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub IEM_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With
With IEM
.Height = 54
.Width = 132
Lem.Caption = "Empresa"
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = True
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub IPR_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 132
Lpr.Caption = "Productos"
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With
With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = True
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------

Private Sub IPV_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X


As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With
With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 132
Lpv.Caption = "Proveedor"
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = True
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub IRE_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 132
Lre.Caption = "Reportes"
End With

With IEM
.Height = 54
.Width = 54
Lem.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With
Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = True
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub IUS_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X
As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lem.Caption = ""
End With

With IUS
.Height = 54
.Width = 132
Lus.Caption = "Usuarios"
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = True
Lblcf.Visible = False
Lblce.Visible = False

End Sub
-----------------------------------------------------------------------------------
--------------------------------
Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer,
ByVal X As Single, ByVal Y As Single)

With IPR
.Height = 54
.Width = 54
Lpr.Caption = ""
End With

With ICL
.Height = 54
.Width = 54
Lcl.Caption = ""
End With

With IPV
.Height = 54
.Width = 54
Lpv.Caption = ""
End With

With ICO
.Height = 54
.Width = 54
Lco.Caption = ""
End With

With IRE
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IEM
.Height = 54
.Width = 54
Lre.Caption = ""
End With

With IUS
.Height = 54
.Width = 54
Lus.Caption = ""
End With

With ICF
.Height = 54
.Width = 54
Lcf.Caption = ""
End With

With ICE
.Height = 54
.Width = 54
Lce.Caption = ""
End With

Lblpr.Visible = False
Lblcl.Visible = False
Lblpv.Visible = False
Lblco.Visible = False
Lblre.Visible = False
Lblem.Visible = False
Lblus.Visible = False
Lblcf.Visible = False
Lblce.Visible = False

End Sub
----------------------------------------------------

NAMES OF THE OBJECTS USED IN THE VIDEO

NOMBRES DE LOS OBJETOS USADOS EN EL VIDEO

IPR - Productos
ICL - Clientes
IPV - Proveedores
ICO - Cotizaciones
IRE - Reportes
IEM - Empresa
IUS - Usuarios
ICF - Config
ICE - Cerrar

Lpr - Productos
Lcl - Clientes
Lpv - Proveedores
Lco - Cotizaciones
Lre - Reportes
Lem - Empresa
Lus - Usuarios
Lcf - Config
Lce - Cerrar

Lblpr
Lblcl
Lblpv
Lblco
Lblre
Lblem
Lblus
Lblcf
Lblce
----------------------------------------------------

You might also like