The document contains code for a userform that loads different picture files into image controls based on mouse movement over labels. It defines a global caminho variable to store the workbook path and sets initial pictures. When the mouse moves over each label, it loads a new picture from the caminho folder for that image control.
The document contains code for a userform that loads different picture files into image controls based on mouse movement over labels. It defines a global caminho variable to store the workbook path and sets initial pictures. When the mouse moves over each label, it loads a new picture from the caminho folder for that image control.
The document contains code for a userform that loads different picture files into image controls based on mouse movement over labels. It defines a global caminho variable to store the workbook path and sets initial pictures. When the mouse moves over each label, it loads a new picture from the caminho folder for that image control.
Private Sub Label1_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal
X As Single, ByVal Y As Single) Me.Image1.Picture = LoadPicture(caminho & "\" & "CADLEITOR2.jpg") End Sub Private Sub Label2_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Me.Image2.Picture = LoadPicture(caminho & "\" & "CADLIV2.jpg") End Sub Private Sub Label3_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Me.Image3.Picture = LoadPicture(caminho & "\" & "EMP2.jpg") End Sub Private Sub Label4_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single) Me.Image4.Picture = LoadPicture(caminho & "\" & "FEC2.jpg") End Sub Private Sub UserForm_Initialize() caminho = ThisWorkbook.Path Me.Image1.Picture = LoadPicture(caminho & "\" & "CADLEITOR1.jpg") Me.Image2.Picture = LoadPicture(caminho & "\" & "CADLIV1.jpg") Me.Image3.Picture = LoadPicture(caminho & "\" & "EMP1.jpg") Me.Image4.Picture = LoadPicture(caminho & "\" & "FEC1.jpg")