Documente Academic
Documente Profesional
Documente Cultură
https://www.extendoffice.com/es/documents/excel.html
If Target.Validation.Type = 3 Then
Target.Validation.InCellDropdown = False
Cancel = True
xStr = Target.Validation.Formula1
xStr = Right(xStr, Len(xStr) - 1)
If xStr = "" Then Exit Sub
With xCombox
.Visible = True
.Left = Target.Left
.Top = Target.Top
.Width = Target.Width + 5
.Height = Target.Height + 5
.ListFillRange = xStr
.LinkedCell = Target.Address
End With
xCombox.Activate
Me.TempCombo.DropDown
End If
End Sub
Private Sub TempCombo_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift
As Integer)
Select Case KeyCode
Case 9
Application.ActiveCell.Offset(0, 1).Activate
Case 13
Application.ActiveCell.Offset(1, 0).Activate
End Select
End Sub
Sub IDA()
'
' IDA Macro
'
'
Sheets("Hoja1").Select
Sheets("Hoja2").Visible = True
Range("C11").Select
Sheets("Hoja2").Select
Range("C11").Select
End Sub
Sub VUELTA()
'
' VUELTA Macro
'
'
Sheets("Hoja2").Select
ActiveWindow.SelectedSheets.Visible = False
Range("B11").Select
End Sub