Microsoft Visual Basic

28
UFDatos - 1 Option Explicit Dim rango As Range Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByV al nIndex As Long, ByVal dwNewLong As Long) As Long Private Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByV al nIndex As Long) As Long Private Const WS_MINIMIZEBOX As Long = &H20000 Private Const WS_MAXIMIZEBOX As Long = &H10000 Private Const GWL_STYLE As Long = (-16) Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirector y As String, ByVal nShowCmd As Long) As Long Private Sub CommandButton1_Click() UFDatos.Show End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'On Error GoTo Falta If Target.Row > 1 And Target.Column < 29 Then UFDatos.Textniveldic = Cells(Target.Row, 1) UFDatos.Textindice = Cells(Target.Row, 2) UFDatos.Textnivel2 = Cells(Target.Row, 3) UFDatos.TextBox1 = Cells(Target.Row, 4) UFDatos.TextBox2 = Cells(Target.Row, 5) UFDatos.Textnivel3 = Cells(Target.Row, 6) UFDatos.Textromanji = Cells(Target.Row, 7) UFDatos.Textnivel = Cells(Target.Row, 8) UFDatos.TextBox3 = Cells(Target.Row, 9) UFDatos.TextBox4 = Cells(Target.Row, 10) UFDatos.Texttipo = Cells(Target.Row, 11) UFDatos.TextBox5 = Cells(Target.Row, 14) UFDatos.TextBox6 = Cells(Target.Row, 15) UFDatos.TextBox7 = Cells(Target.Row, 16) UFDatos.TextBox8 = Cells(Target.Row, 17) UFDatos.TextBox9 = Cells(Target.Row, 18) UFDatos.TextBox10 = Cells(Target.Row, 19) UFDatos.TextBox11 = Cells(Target.Row, 20) UFDatos.TextBox12 = Cells(Target.Row, 21) UFDatos.TextBox13 = Cells(Target.Row, 22) UFDatos.TextBox14 = Cells(Target.Row, 23) UFDatos.TextBox15 = Cells(Target.Row, 24) UFDatos.TextBox16 = Cells(Target.Row, 25) UFDatos.TextBox17 = Cells(Target.Row, 26) UFDatos.TextBox18 = Cells(Target.Row, 27) UFDatos.TextBox19 = Cells(Target.Row, 28) UFDatos.TextBox20 = Cells(Target.Row, 29) UFDatos.ComboBox8 = Range("D" & rango.Row) UFDatos.Textfila = Target.Row UFDatos.Textcolumna = Target.Column If Cells(Target.Row, 12) <> "" Then UFDatos.Imgfoto.Picture = LoadPicture(ThisWorkbook.Path & "\" & Cells(Target.Row, 12) & ".j pg") Else UFDatos.Imgfoto.Picture = LoadPicture(ThisWorkbook.Path & "\sf.jpg") End If Else UFDatos.ComboBox8 = "" UFDatos.Textniveldic = "" UFDatos.Textindice = "" UFDatos.Textnivel = "" UFDatos.TextBox1 = "" UFDatos.TextBox2 = "" UFDatos.Textnivel2 = "" UFDatos.Textromanji = "" UFDatos.Textnivel3 = "" UFDatos.TextBox3 = "" UFDatos.TextBox4 = "" UFDatos.Texttipo = "" UFDatos.TextBox5 = "" UFDatos.TextBox6 = "" UFDatos.TextBox7 = "" UFDatos.TextBox8 = ""

description

visual basic manual

Transcript of Microsoft Visual Basic

UFDatos - 1 Option ExplicitDim rango As RangePrivate Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function DrawMenuBar Lib "user32" (ByVal hwnd As Long) As LongPrivate Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As LongPrivate Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As LongPrivate Const WS_MINIMIZEBOX As Long = &H20000Private Const WS_MAXIMIZEBOX As Long = &H10000Private Const GWL_STYLE As Long = (-16)Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As LongPrivate Sub CommandButton1_Click()UFDatos.ShowEnd Sub

Private Sub Worksheet_SelectionChange(ByVal Target As Range)'On Error GoTo Falta If Target.Row > 1 And Target.Column < 29 Then UFDatos.Textniveldic = Cells(Target.Row, 1) UFDatos.Textindice = Cells(Target.Row, 2) UFDatos.Textnivel2 = Cells(Target.Row, 3) UFDatos.TextBox1 = Cells(Target.Row, 4) UFDatos.TextBox2 = Cells(Target.Row, 5) UFDatos.Textnivel3 = Cells(Target.Row, 6) UFDatos.Textromanji = Cells(Target.Row, 7) UFDatos.Textnivel = Cells(Target.Row, 8) UFDatos.TextBox3 = Cells(Target.Row, 9) UFDatos.TextBox4 = Cells(Target.Row, 10) UFDatos.Texttipo = Cells(Target.Row, 11) UFDatos.TextBox5 = Cells(Target.Row, 14) UFDatos.TextBox6 = Cells(Target.Row, 15) UFDatos.TextBox7 = Cells(Target.Row, 16) UFDatos.TextBox8 = Cells(Target.Row, 17) UFDatos.TextBox9 = Cells(Target.Row, 18) UFDatos.TextBox10 = Cells(Target.Row, 19) UFDatos.TextBox11 = Cells(Target.Row, 20) UFDatos.TextBox12 = Cells(Target.Row, 21) UFDatos.TextBox13 = Cells(Target.Row, 22) UFDatos.TextBox14 = Cells(Target.Row, 23) UFDatos.TextBox15 = Cells(Target.Row, 24) UFDatos.TextBox16 = Cells(Target.Row, 25) UFDatos.TextBox17 = Cells(Target.Row, 26) UFDatos.TextBox18 = Cells(Target.Row, 27) UFDatos.TextBox19 = Cells(Target.Row, 28) UFDatos.TextBox20 = Cells(Target.Row, 29) UFDatos.ComboBox8 = Range("D" & rango.Row) UFDatos.Textfila = Target.Row UFDatos.Textcolumna = Target.Column If Cells(Target.Row, 12) <> "" Then UFDatos.Imgfoto.Picture = LoadPicture(ThisWorkbook.Path & "\" & Cells(Target.Row, 12) & ".jpg") Else UFDatos.Imgfoto.Picture = LoadPicture(ThisWorkbook.Path & "\sf.jpg") End IfElse UFDatos.ComboBox8 = "" UFDatos.Textniveldic = "" UFDatos.Textindice = "" UFDatos.Textnivel = "" UFDatos.TextBox1 = "" UFDatos.TextBox2 = "" UFDatos.Textnivel2 = "" UFDatos.Textromanji = "" UFDatos.Textnivel3 = "" UFDatos.TextBox3 = "" UFDatos.TextBox4 = "" UFDatos.Texttipo = "" UFDatos.TextBox5 = "" UFDatos.TextBox6 = "" UFDatos.TextBox7 = "" UFDatos.TextBox8 = ""

UFDatos - 2 UFDatos.TextBox9 = "" UFDatos.TextBox10 = "" UFDatos.TextBox11 = "" UFDatos.TextBox12 = "" UFDatos.TextBox13 = "" UFDatos.TextBox14 = "" UFDatos.TextBox15 = "" UFDatos.TextBox16 = "" UFDatos.TextBox17 = "" UFDatos.TextBox18 = "" UFDatos.TextBox19 = "" UFDatos.TextBox20 = "" UFDatos.Textfila = Target.Row UFDatos.Textcolumna = Target.Column UFDatos.Imgfoto.Picture = LoadPicture(ThisWorkbook.Path & "\sf.jpg")End If'Falta:' MsgBox "no se encontro el archivo"

End Sub

Private Sub ComboBox7_Change() ToggleButton12_ClickEnd Sub

Private Sub CheckBox3_Click()

End Sub

Private Sub ToggleButton12_Click()

If ToggleButton12.Value = True Then If ComboBox7.Value = "Stud C - D" Then ToggleButton5.Value = False ToggleButton4.Value = True ToggleButton6.Value = False ToggleButton7.Value = True ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True Label15.Visible = True Label16.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Stud C - P" Then ToggleButton5.Value = True ToggleButton4.Value = True ToggleButton6.Value = True ToggleButton7.Value = False

UFDatos - 3 ToggleButton8.Value = False ToggleButton9.Value = True CheckBox12.Value = True CheckBox13.Value = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Stud C - P - D" Then ToggleButton5.Value = False ToggleButton4.Value = False ToggleButton6.Value = False ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True CheckBox13.Value = True Label15.Visible = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Mult C - D" Then ToggleButton5.Value = False ToggleButton4.Value = True ToggleButton6.Value = False ToggleButton7.Value = True ToggleButton8.Value = False

UFDatos - 4 ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True Label15.Visible = True Label16.Visible = True CheckBox6.Value = True CheckBox10.Value = False CheckBox7.Value = True CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = False ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult D - C" Then ToggleButton5.Value = False ToggleButton4.Value = True ToggleButton6.Value = False ToggleButton7.Value = True ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True Label15.Visible = True Label16.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = False ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult C - P" Then ToggleButton5.Value = True ToggleButton4.Value = True ToggleButton6.Value = True ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True

UFDatos - 5 CheckBox12.Value = True CheckBox13.Value = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = True CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = False ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult P - C" Then ToggleButton5.Value = True ToggleButton4.Value = True ToggleButton6.Value = True ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox12.Value = True CheckBox13.Value = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = False ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult A - C - P" Then ToggleButton5.Value = True ToggleButton4.Value = True ToggleButton6.Value = True ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox12.Value = True CheckBox13.Value = True

UFDatos - 6 Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = True CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = True CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = True ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult C - P - D" Then ToggleButton5.Value = False ToggleButton4.Value = False ToggleButton6.Value = False ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True CheckBox13.Value = True Label15.Visible = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = True CheckBox10.Value = True CheckBox7.Value = True CheckBox11.Value = True CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = True ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult D - C - P" Then ToggleButton5.Value = False ToggleButton4.Value = False ToggleButton6.Value = False ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True

UFDatos - 7 CheckBox13.Value = True Label15.Visible = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = True CheckBox7.Value = False CheckBox11.Value = True CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = True ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Mult P - C - D" Then ToggleButton5.Value = False ToggleButton4.Value = False ToggleButton6.Value = False ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True CheckBox13.Value = True Label15.Visible = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = True CheckBox10.Value = False CheckBox7.Value = True CheckBox11.Value = False CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False ComboBox8.Visible = True ComboBox9.Visible = True ToggleButton10.Height = 50 ToggleButton10.Left = 640.5 ToggleButton10.Top = 154 ToggleButton10.Width = 24 End If If ComboBox7.Value = "Full D - C" Then ToggleButton5.Value = False ToggleButton4.Value = True ToggleButton6.Value = False ToggleButton7.Value = True ToggleButton8.Value = False ToggleButton9.Value = True CheckBox2.Value = True CheckBox12.Value = True

UFDatos - 8 Label15.Visible = True Label16.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = True CommandButton9.Visible = True TextBox22.Visible = True ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Full P - C" Then ToggleButton5.Value = True ToggleButton4.Value = False ToggleButton6.Value = True ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox12.Value = True CheckBox13.Value = True Label16.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = True CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = True CommandButton9.Visible = True TextBox22.Visible = True ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Full C - P" Then ToggleButton5.Value = True ToggleButton4.Value = False ToggleButton6.Value = True ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = True CheckBox12.Value = True CheckBox13.Value = True Label16.Visible = True Label17.Visible = True

UFDatos - 9 CheckBox6.Value = False CheckBox10.Value = True CheckBox7.Value = False CheckBox11.Value = True CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = True CommandButton9.Visible = True TextBox22.Visible = True ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Full A - P" Then ToggleButton5.Value = True ToggleButton4.Value = False ToggleButton6.Value = True ToggleButton7.Value = True ToggleButton8.Value = True ToggleButton9.Value = True CheckBox13.Value = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = True CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = True CommandButton8.Visible = True CommandButton9.Visible = True TextBox22.Visible = True ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Full A - C" Then ToggleButton5.Value = True ToggleButton4.Value = True ToggleButton6.Value = True ToggleButton7.Value = True ToggleButton8.Value = False ToggleButton9.Value = True CheckBox12.Value = True Label16.Visible = True CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = True CheckBox9.Value = False CheckBox5.Value = True

UFDatos - 10 CommandButton8.Visible = True CommandButton9.Visible = True TextBox22.Visible = True ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End If If ComboBox7.Value = "Full D - P" Then ToggleButton5.Value = False ToggleButton4.Value = False ToggleButton6.Value = False ToggleButton7.Value = True ToggleButton8.Value = True ToggleButton9.Value = True CheckBox2.Value = True CheckBox13.Value = True Label15.Visible = True Label17.Visible = True CheckBox6.Value = False CheckBox10.Value = True CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = True CommandButton9.Visible = True TextBox22.Visible = True ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End IfElse ToggleButton5.Value = False ToggleButton4.Value = False ToggleButton6.Value = False ToggleButton7.Value = False ToggleButton8.Value = False ToggleButton9.Value = False CheckBox2.Value = False CheckBox12.Value = False CheckBox13.Value = False Label15.Visible = False Label16.Visible = False Label17.Visible = False CheckBox6.Value = False CheckBox10.Value = False CheckBox7.Value = False CheckBox11.Value = False CheckBox8.Value = False CheckBox9.Value = False CheckBox5.Value = False CommandButton8.Visible = False CommandButton9.Visible = False TextBox22.Visible = False

UFDatos - 11 ComboBox8.Visible = False ComboBox9.Visible = False ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Top = 450 ToggleButton10.Width = 57 End IfEnd Sub

Private Sub ComboBox8_Change() If ComboBox7.Value = "Mult C - D" Then If ComboBox8.Text = Cells(ActiveCell.Row, 9) Then TextBox23.Visible = True TextBox23.Text = "^" TextBox23.ForeColor = RGB(190, 254, 204) Else TextBox23.Visible = True TextBox23.Text = "X" TextBox23.ForeColor = RGB(255, 192, 203) End If End If If ComboBox7.Value = "Mult D - C" Or ComboBox7.Value = "Mult P - C" Or ComboBox7.Value = "Mult D - C - P" Or ComboBox7.Value = "Mult P - C - D" Then If ComboBox8.Text = Cells(ActiveCell.Row, 4) Then TextBox23.Visible = True TextBox23.Text = "^" TextBox23.ForeColor = RGB(190, 254, 204) Else TextBox23.Visible = True TextBox23.Text = "X" TextBox23.ForeColor = RGB(255, 192, 203) End If End If If ComboBox7.Value = "Mult C - P" Or ComboBox7.Value = "Mult A - C - P" Or ComboBox7.Value = "Mult C - P - D" Then If ComboBox8.Text = Cells(ActiveCell.Row, 7) Then TextBox23.Visible = True TextBox23.Text = "^" TextBox23.ForeColor = RGB(190, 254, 204) Else TextBox23.Visible = True TextBox23.Text = "X" TextBox23.ForeColor = RGB(255, 192, 203) End If End IfEnd SubPrivate Sub ComboBox9_Change() If ComboBox7.Value = "Mult C - P - D" Or ComboBox7.Value = "Mult P - C - D" Then If ComboBox9.Text = Cells(ActiveCell.Row, 9) Then TextBox24.Visible = True TextBox24.Text = "^" TextBox24.ForeColor = RGB(190, 254, 204) Else TextBox24.Visible = True TextBox24.Text = "X" TextBox24.ForeColor = RGB(255, 192, 203) End If End If If ComboBox7.Value = "Mult A - C - P" Then If ComboBox9.Text = Cells(ActiveCell.Row, 4) Then TextBox24.Visible = True TextBox24.Text = "^" TextBox24.ForeColor = RGB(190, 254, 204) Else TextBox24.Visible = True TextBox24.Text = "X"

UFDatos - 12 TextBox24.ForeColor = RGB(255, 192, 203) End If End If If ComboBox7.Value = "Mult D - C - P" Then If ComboBox9.Text = Cells(ActiveCell.Row, 7) Then TextBox24.Visible = True TextBox24.Text = "^" TextBox24.ForeColor = RGB(190, 254, 204) Else TextBox24.Visible = True TextBox24.Text = "X" TextBox24.ForeColor = RGB(255, 192, 203) End If End IfEnd Sub

Private Sub CommandButton8_Click() If CheckBox6.Value = True Then TextBox3.ForeColor = RGB(190, 254, 204) End If If CheckBox7.Value = True Then TextBox4.Visible = Visible End If If CheckBox8.Value = True Then TextBox1.Visible = Visible End If If CheckBox9.Value = True Then TextBox2.Visible = Visible End If If CheckBox10.Value = True Then Textromanji.ForeColor = RGB(191, 254, 254) End If If CheckBox11.Value = True Then ToggleButton7.Value = False End If If ComboBox7.Value = "Full D - C" Or ComboBox7.Value = "Full P - C" Or ComboBox7.Value = "Full A - C" Then If TextBox22.Text = Cells(ActiveCell.Row, 4) Then TextBox24.Visible = True TextBox24.Text = "^" TextBox24.ForeColor = RGB(190, 254, 204) Else TextBox24.Visible = True TextBox24.Text = "X" TextBox24.ForeColor = RGB(255, 192, 203) End If End If If ComboBox7.Value = "Full C - P" Or ComboBox7.Value = "Full A - P" Or ComboBox7.Value = "Full D - P" Then If TextBox22.Text = Cells(ActiveCell.Row, 7) Then TextBox24.Visible = True TextBox24.Text = "^" TextBox24.ForeColor = RGB(190, 254, 204) TextBox24.FontSize = 30 Else TextBox24.Visible = True TextBox24.Text = "X" TextBox24.ForeColor = RGB(255, 192, 203) TextBox24.FontSize = 30 End If End If CommandButton9.SetFocus End Sub

Private Sub CommandButton9_Click()TextBox23.Visible = FalseTextBox24.Visible = False ActiveCell.Offset(1, 0).Select

UFDatos - 13 If CheckBox5 = True Then CommandButton6_Click End If If CheckBox6.Value = True Then TextBox3.ForeColor = RGB(128, 128, 128) End If If CheckBox7.Value = True Then TextBox4.Visible = False End If If CheckBox8.Value = True Then TextBox1.Visible = False End If If CheckBox9.Value = True Then TextBox2.Visible = False End If If CheckBox10.Value = True Then Textromanji.ForeColor = RGB(128, 128, 128) End If If CheckBox11.Value = True Then ToggleButton7.Value = True End If TextBox22 = "" TextBox23 = ""End Sub

Private Sub CheckBox2_Click() If CheckBox2 = True Then OptionButton1.Visible = True OptionButton2.Visible = True OptionButton3.Visible = True Textnivel.Visible = True Label15.Visible = True Else OptionButton1.Visible = False OptionButton2.Visible = False OptionButton3.Visible = False Textnivel.Visible = False Label15.Visible = False End IfEnd SubPrivate Sub CheckBox12_Click() If CheckBox12 = True Then OptionButton4.Visible = True OptionButton5.Visible = True OptionButton6.Visible = True Textnivel2.Visible = True Label16.Visible = True Else OptionButton4.Visible = False OptionButton5.Visible = False OptionButton6.Visible = False Textnivel2.Visible = False Label16.Visible = False End IfEnd SubPrivate Sub CheckBox13_Click() If CheckBox13 = True Then OptionButton7.Visible = True OptionButton8.Visible = True OptionButton9.Visible = True Textnivel3.Visible = True Label17.Visible = True Else OptionButton7.Visible = False OptionButton8.Visible = False OptionButton9.Visible = False Textnivel3.Visible = False Label17.Visible = False End IfEnd Sub

Private Sub OptionButton1_Click()

UFDatos - 14 If OptionButton1.Value = True Then Textnivel.Value = 1 End If CommandButton3_ClickEnd Sub

Private Sub OptionButton2_Click() If OptionButton2.Value = True Then Textnivel.Value = 2 End If CommandButton3_ClickEnd Sub

Private Sub OptionButton3_Click() If OptionButton3.Value = True Then Textnivel.Value = 3 End If CommandButton3_ClickEnd SubPrivate Sub OptionButton4_Click() If OptionButton4.Value = True Then Textnivel2.Value = 1 End If CommandButton3_ClickEnd Sub

Private Sub OptionButton5_Click() If OptionButton5.Value = True Then Textnivel2.Value = 2 End If CommandButton3_ClickEnd Sub

Private Sub OptionButton6_Click() If OptionButton6.Value = True Then Textnivel2.Value = 3 End If CommandButton3_ClickEnd SubPrivate Sub OptionButton7_Click() If OptionButton7.Value = True Then Textnivel3.Value = 1 End If CommandButton3_ClickEnd Sub

Private Sub OptionButton8_Click() If OptionButton8.Value = True Then Textnivel3.Value = 2 End If CommandButton3_ClickEnd Sub

Private Sub OptionButton9_Click() If OptionButton9.Value = True Then Textnivel3.Value = 3 End If CommandButton3_ClickEnd Sub

Private Sub TextBox22_Change()

End Sub

Private Sub UserForm_Activate() 'LLENADO DE COMBOS Me.ComboBox1.RowSource = "listaindice" Me.ComboBox2.RowSource = "listanivel" Me.ComboBox3.RowSource = "listatipo" Me.ComboBox4.RowSource = "listanivelp" Me.ComboBox5.RowSource = "listanivel" Me.ComboBox6.RowSource = "listanivel"

UFDatos - 15 Me.ComboBox7.RowSource = "listaex" End Sub

Private Sub CommandButton2_Click()

If TextBox3 = "" ThenMsgBox "Coloca algun dato para buscar", vbOKOnly + vbInformation, "AVISO"TextBox3.SetFocusExit SubEnd If

Set rango = Range("A:K").Find(TextBox3.Text, LookAt:=xlWhole, LookIn:=xlValues)

If rango Is Nothing ThenMsgBox "Nooor se encuentra", vbOKOnly + vbInformation, "AVISO" TextBox3 = "": TextBox3.SetFocusExit SubElse

Textindice = Range("B" & rango.Row)TextBox1 = Range("D" & rango.Row)TextBox2 = Range("E" & rango.Row)TextBox3 = Range("I" & rango.Row)TextBox4 = Range("J" & rango.Row)Texttipo = Range("K" & rango.Row)Textromanji = Range("G" & rango.Row)Sheets("Hoja1").Range("A:K").Find(What:=TextBox3, LookAt:=xlWhole, After:=ActiveCell).Activate

End If

End Sub

Private Sub CommandButton3_Click()

OptionButton1.Value = FalseOptionButton2.Value = FalseOptionButton3.Value = FalseOptionButton4.Value = FalseOptionButton5.Value = FalseOptionButton6.Value = FalseOptionButton7.Value = FalseOptionButton8.Value = FalseOptionButton9.Value = False

Cells(ActiveCell.Row, 2) = Textindice.ValueCells(ActiveCell.Row, 3) = Textnivel2.ValueCells(ActiveCell.Row, 6) = Textnivel3.ValueCells(ActiveCell.Row, 8) = Textnivel.ValueCells(ActiveCell.Row, 9) = TextBox3.ValueCells(ActiveCell.Row, 10) = TextBox4.ValueCells(ActiveCell.Row, 11) = Texttipo.Value

End Sub

Private Sub CommandButton4_Click() Range("A1").Select ActiveSheet.ShowDataFormEnd SubPrivate Sub CommandButton5_Click()

Dim respuesta As Integer, ctr As Control

If rango Is Nothing ThenMsgBox "Por SEGURIDAD, 1º botón (Buscar)", vbOKOnly + vbInformation, "AVISO"TextBox3.SetFocusExit SubEnd If

respuesta = MsgBox("Cuidado NENE, ¿Estas seguro de eliminar LA FILA elegida?", vbCritical + vbOKCan

UFDatos - 16 cel, "AVISO")If respuesta = vbOK ThenCells(rango.Row, rango.Column).EntireRow.DeleteFor Each ctr In Me.ControlsIf TypeOf ctr Is MSForms.TextBox Thenctr = ""End IfNext ctrTextBox3.SetFocusExit SubEnd If

MsgBox "Operacion cancelada", vbOKOnly + vbInformation, "AVISO"

For Each ctr In Me.ControlsIf TypeOf ctr Is MSForms.TextBox Thenctr = ""End IfNext ctr

TextBox3.SetFocus

End Sub

Private Sub CommandButton6_Click() ShellExecute Application.hwnd, "Open", ThisWorkbook.Path & "\" & Cells(Textfila, 13) & ".mp3", "", 0&, 1End Sub

Private Sub CommandButton7_Click()Range("A2").SelectDo While Not IsEmpty(ActiveCell)If ActiveCell.Value = 0 ThenActiveCell.EntireRow.Hidden = TrueElseActiveCell.EntireRow.Hidden = FalseEnd IfActiveCell.Offset(1).SelectLoopEnd SubPrivate Sub UserForm_Initialize() Dim lngMyHandle As Long, lngCurrentStyle As Long, lngNewStyle As Long If Application.Version < 9 Then lngMyHandle = FindWindow("THUNDERXFRAME", Me.Caption) Else lngMyHandle = FindWindow("THUNDERDFRAME", Me.Caption) End If lngCurrentStyle = GetWindowLong(lngMyHandle, GWL_STYLE) lngNewStyle = lngCurrentStyle Or WS_MINIMIZEBOX Or WS_MAXIMIZEBOX SetWindowLong lngMyHandle, GWL_STYLE, lngNewStyleEnd SubPrivate Sub SpinButton1_SpinUp()

If ToggleButton1.Value = False Then ActiveCell.Offset(1, 0).Select If CheckBox5 = True Then CommandButton6_Click End IfElse Do ActiveCell.Offset(1, 0).Select Loop Until ActiveCell.EntireRow.RowHeight > 0End If

End SubPrivate Sub SpinButton1_SpinDown()If ToggleButton1.Value = False Then ActiveCell.Offset(-1, 0).Select If CheckBox5 = True Then CommandButton6_Click End IfElse Do ActiveCell.Offset(-1, 0).Select Loop Until ActiveCell.EntireRow.RowHeight > 0

UFDatos - 17 End IfEnd SubPrivate Sub SpinButton2_SpinUp() ActiveCell.Offset(-100, 0).SelectEnd SubPrivate Sub SpinButton2_SpinDown() ActiveCell.Offset(100, 0).SelectEnd SubPrivate Sub SpinButton3_SpinUp() ActiveCell.Offset(-1000, 0).SelectEnd SubPrivate Sub SpinButton3_SpinDown() ActiveCell.Offset(1000, 0).SelectEnd SubPrivate Sub Textnivel_Change() If Textnivel.Value = "1" Then Textnivel.BackColor = RGB(255, 192, 203) Textnivel.ForeColor = RGB(255, 192, 203) OptionButton1.BackColor = RGB(255, 192, 203) OptionButton2.BackColor = RGB(255, 255, 255) OptionButton3.BackColor = RGB(255, 255, 255) End If If Textnivel.Value = "2" Then Textnivel.BackColor = RGB(255, 222, 173) Textnivel.ForeColor = RGB(255, 222, 173) OptionButton1.BackColor = RGB(255, 255, 255) OptionButton2.BackColor = RGB(255, 222, 173) OptionButton3.BackColor = RGB(255, 255, 255) End If If Textnivel.Value = "3" Then Textnivel.BackColor = RGB(152, 251, 152) Textnivel.ForeColor = RGB(152, 251, 152) OptionButton1.BackColor = RGB(255, 255, 255) OptionButton2.BackColor = RGB(255, 255, 255) OptionButton3.BackColor = RGB(152, 251, 152) End If

End SubPrivate Sub Textnivel2_Change() If Textnivel2.Value = "1" Then Textnivel2.BackColor = RGB(255, 192, 203) Textnivel2.ForeColor = RGB(255, 192, 203) OptionButton4.BackColor = RGB(255, 192, 203) OptionButton5.BackColor = RGB(255, 255, 255) OptionButton6.BackColor = RGB(255, 255, 255) End If If Textnivel2.Value = "2" Then Textnivel2.BackColor = RGB(255, 222, 173) Textnivel2.ForeColor = RGB(255, 222, 173) OptionButton4.BackColor = RGB(255, 255, 255) OptionButton5.BackColor = RGB(255, 222, 173) OptionButton6.BackColor = RGB(255, 255, 255) End If If Textnivel2.Value = "3" Then Textnivel2.BackColor = RGB(152, 251, 152) Textnivel2.ForeColor = RGB(152, 251, 152) OptionButton4.BackColor = RGB(255, 255, 255) OptionButton5.BackColor = RGB(255, 255, 255) OptionButton6.BackColor = RGB(152, 251, 152) End IfEnd SubPrivate Sub Textnivel3_Change() If Textnivel3.Value = "1" Then Textnivel3.BackColor = RGB(255, 192, 203) Textnivel3.ForeColor = RGB(255, 192, 203) OptionButton7.BackColor = RGB(255, 192, 203) OptionButton8.BackColor = RGB(255, 255, 255) OptionButton9.BackColor = RGB(255, 255, 255) End If If Textnivel3.Value = "2" Then Textnivel3.BackColor = RGB(255, 222, 173) Textnivel3.ForeColor = RGB(255, 222, 173) OptionButton7.BackColor = RGB(255, 255, 255) OptionButton8.BackColor = RGB(255, 222, 173) OptionButton9.BackColor = RGB(255, 255, 255) End If

UFDatos - 18 If Textnivel3.Value = "3" Then Textnivel3.BackColor = RGB(152, 251, 152) Textnivel3.ForeColor = RGB(152, 251, 152) OptionButton7.BackColor = RGB(255, 255, 255) OptionButton8.BackColor = RGB(255, 255, 255) OptionButton9.BackColor = RGB(152, 251, 152) End IfEnd SubPrivate Sub ToggleButton1_Click() If ToggleButton1.Value = True Then If CheckBox1 = True Then Range("A1").AutoFilter Field:=2, Criteria1:=ComboBox1.Value, Operator:=xlOr, _ Criteria2:=TextBox3.Value Label14.ForeColor = RGB(191, 254, 254) End If If CheckBox2 = True Then Range("A1").AutoFilter Field:=8, Criteria1:=ComboBox2.Value, Operator:=xlOr, _ Criteria2:=TextBox3.Value Label14.ForeColor = RGB(191, 254, 254) End If If CheckBox3 = True Then Range("A1").AutoFilter Field:=11, Criteria1:=ComboBox3.Value, Operator:=xlOr, _ Criteria2:=TextBox3.Value Label14.ForeColor = RGB(191, 254, 254) End If If CheckBox4 = True Then Range("A1").AutoFilter Field:=1, Criteria1:=ComboBox4.Value, Operator:=xlOr, _ Criteria2:=TextBox3.Value Label14.ForeColor = RGB(191, 254, 254) End If If CheckBox12 = True Then Range("A1").AutoFilter Field:=3, Criteria1:=ComboBox5.Value, Operator:=xlOr, _ Criteria2:=TextBox3.Value Label14.ForeColor = RGB(191, 254, 254) End If If CheckBox13 = True Then Range("A1").AutoFilter Field:=6, Criteria1:=ComboBox6.Value, Operator:=xlOr, _ Criteria2:=TextBox3.Value Label14.ForeColor = RGB(191, 254, 254) End If Else Range("A1").AutoFilter Label14.ForeColor = RGB(128, 128, 128) End If End Sub

Private Sub ToggleButton2_Click() If ToggleButton2.Value = True Then ' Set UserForm background to Red. Me.BackColor = RGB(80, 80, 80) UFDatos.BackColor = RGB(255, 255, 192) TextBox1.BackColor = RGB(255, 255, 192) TextBox2.BackColor = RGB(255, 255, 192) TextBox3.BackColor = RGB(255, 255, 192) TextBox4.BackColor = RGB(255, 255, 192) TextBox5.BackColor = RGB(255, 255, 192) TextBox6.BackColor = RGB(255, 255, 192) TextBox7.BackColor = RGB(255, 255, 192) TextBox8.BackColor = RGB(255, 255, 192) TextBox9.BackColor = RGB(255, 255, 192) TextBox10.BackColor = RGB(255, 255, 192) TextBox11.BackColor = RGB(255, 255, 192) TextBox12.BackColor = RGB(255, 255, 192) TextBox13.BackColor = RGB(255, 255, 192) TextBox14.BackColor = RGB(255, 255, 192) TextBox15.BackColor = RGB(255, 255, 192) TextBox16.BackColor = RGB(255, 255, 192) TextBox17.BackColor = RGB(255, 255, 192) TextBox18.BackColor = RGB(255, 255, 192) TextBox19.BackColor = RGB(255, 255, 192) TextBox20.BackColor = RGB(255, 255, 192) Textfila.BackColor = RGB(255, 255, 192)

UFDatos - 19 Textromanji.BackColor = RGB(255, 255, 192) Texttipo.BackColor = RGB(255, 255, 192) Textindice.BackColor = RGB(255, 255, 192) TextBox1.ForeColor = RGB(1, 1, 1) TextBox2.ForeColor = RGB(3, 3, 3) TextBox3.ForeColor = RGB(3, 3, 3) TextBox4.ForeColor = RGB(3, 3, 3) TextBox5.ForeColor = RGB(3, 3, 3) TextBox6.ForeColor = RGB(1, 1, 1) TextBox7.ForeColor = RGB(3, 3, 3) TextBox8.ForeColor = RGB(3, 3, 3) TextBox9.ForeColor = RGB(3, 3, 3) TextBox10.ForeColor = RGB(3, 3, 3) TextBox11.ForeColor = RGB(3, 3, 3) TextBox12.ForeColor = RGB(1, 1, 1) TextBox13.ForeColor = RGB(3, 3, 3) TextBox14.ForeColor = RGB(3, 3, 3) TextBox15.ForeColor = RGB(3, 3, 3) TextBox16.ForeColor = RGB(3, 3, 3) TextBox17.ForeColor = RGB(1, 1, 1) TextBox18.ForeColor = RGB(3, 3, 3) TextBox19.ForeColor = RGB(3, 3, 3) TextBox20.ForeColor = RGB(3, 3, 3) Textfila.ForeColor = RGB(3, 3, 3) Textromanji.ForeColor = RGB(3, 3, 3) Texttipo.ForeColor = RGB(3, 3, 3) Textindice.ForeColor = RGB(3, 3, 3) Else TextBox1.BackColor = RGB(255, 255, 255) TextBox2.BackColor = RGB(255, 255, 255) TextBox3.BackColor = RGB(255, 255, 255) TextBox4.BackColor = RGB(255, 255, 255) Textfila.BackColor = RGB(255, 255, 255) Texttipo.BackColor = RGB(255, 255, 255) Textindice.BackColor = RGB(255, 255, 255) UFDatos.BackColor = RGB(255, 255, 255) End IfEnd SubPrivate Sub ToggleButton4_Click() If ToggleButton4.Value = True Then Textromanji.ForeColor = RGB(128, 128, 128) Else Textromanji.ForeColor = RGB(191, 254, 254) End IfEnd SubPrivate Sub ToggleButton5_Click() If ToggleButton5.Value = True Then TextBox3.ForeColor = RGB(128, 128, 128) Else TextBox3.ForeColor = RGB(190, 254, 204) End IfEnd SubPrivate Sub ToggleButton6_Click() If ToggleButton6.Value = True Then TextBox4.ForeColor = RGB(128, 128, 128) Else TextBox4.ForeColor = RGB(255, 255, 255) End IfEnd SubPrivate Sub ToggleButton7_Click() If ToggleButton7.Value = True Then TextBox5.ForeColor = RGB(128, 128, 128) TextBox6.ForeColor = RGB(128, 128, 128) TextBox7.ForeColor = RGB(128, 128, 128) TextBox8.ForeColor = RGB(128, 128, 128) TextBox9.ForeColor = RGB(128, 128, 128) TextBox10.ForeColor = RGB(128, 128, 128) TextBox11.ForeColor = RGB(128, 128, 128) TextBox12.ForeColor = RGB(128, 128, 128) TextBox13.ForeColor = RGB(128, 128, 128) TextBox14.ForeColor = RGB(128, 128, 128) TextBox15.ForeColor = RGB(128, 128, 128) TextBox16.ForeColor = RGB(128, 128, 128)

UFDatos - 20 TextBox17.ForeColor = RGB(128, 128, 128) TextBox18.ForeColor = RGB(128, 128, 128) TextBox19.ForeColor = RGB(128, 128, 128) TextBox20.ForeColor = RGB(128, 128, 128) Else TextBox5.ForeColor = RGB(191, 254, 254) TextBox6.ForeColor = RGB(191, 254, 254) TextBox7.ForeColor = RGB(191, 254, 254) TextBox8.ForeColor = RGB(191, 254, 254) TextBox9.ForeColor = RGB(191, 254, 254) TextBox10.ForeColor = RGB(191, 254, 254) TextBox11.ForeColor = RGB(191, 254, 254) TextBox12.ForeColor = RGB(191, 254, 254) TextBox13.ForeColor = RGB(191, 254, 254) TextBox14.ForeColor = RGB(191, 254, 254) TextBox15.ForeColor = RGB(191, 254, 254) TextBox16.ForeColor = RGB(191, 254, 254) TextBox17.ForeColor = RGB(191, 254, 254) TextBox18.ForeColor = RGB(191, 254, 254) TextBox19.ForeColor = RGB(191, 254, 254) TextBox20.ForeColor = RGB(191, 254, 254) End IfEnd SubPrivate Sub ToggleButton8_Click() If ToggleButton8.Value = True Then TextBox1.ForeColor = RGB(128, 128, 128) Else TextBox1.ForeColor = RGB(255, 255, 189) End IfEnd SubPrivate Sub ToggleButton9_Click() If ToggleButton9.Value = True Then TextBox2.ForeColor = RGB(128, 128, 128) Else TextBox2.ForeColor = RGB(255, 255, 255) End IfEnd Sub

Private Sub ToggleButton10_Click()TextBox23.Visible = FalseTextBox24.Visible = FalseComboBox8.Text = ""ComboBox9.Text = "" If ToggleButton10.Value = True Then TextBox23.Visible = False TextBox24.Visible = False ActiveCell.Offset(1, 0).Select If CheckBox5 = True Then CommandButton6_Click End If If CheckBox6.Value = True Then TextBox3.ForeColor = RGB(128, 128, 128) End If If CheckBox7.Value = True Then TextBox4.Visible = False End If If CheckBox8.Value = True Then TextBox1.Visible = False End If If CheckBox9.Value = True Then TextBox2.Visible = False End If If CheckBox10.Value = True Then Textromanji.ForeColor = RGB(128, 128, 128) End If If CheckBox11.Value = True Then ToggleButton7.Value = True End If Else TextBox23.Visible = False TextBox24.Visible = False If CheckBox6.Value = True Then TextBox3.ForeColor = RGB(190, 254, 204) End If If CheckBox7.Value = True Then TextBox4.Visible = Visible

UFDatos - 21 End If If CheckBox8.Value = True Then TextBox1.Visible = Visible End If If CheckBox9.Value = True Then TextBox2.Visible = Visible End If If CheckBox10.Value = True Then Textromanji.ForeColor = RGB(191, 254, 254) End If If CheckBox11.Value = True Then ToggleButton7.Value = False End If End IfIf ComboBox7.Value = "Mult D - C" Or ComboBox7.Value = "Mult D - C - P" Or ComboBox7.Value = "Mult P - C" Or ComboBox7.Value = "Mult A - C - P" Then'Convertir Multi en CARACTER ComboBox8.FontSize = 50 ComboBox8.ForeColor = RGB(255, 255, 189) ComboBox9.FontSize = 24 ComboBox9.ForeColor = RGB(191, 254, 254) If Cells(ActiveCell.Row + 5, 1) = 1 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row, 4), Cells(ActiveCell.Row + 5, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row, 7), Cells(ActiveCell.Row + 5, 7)).Address End If If Cells(ActiveCell.Row + 5, 1) = 2 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 1, 4), Cells(ActiveCell.Row + 4, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 1, 7), Cells(ActiveCell.Row + 4, 7)).Address End If If Cells(ActiveCell.Row + 5, 1) = 3 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 2, 4), Cells(ActiveCell.Row + 3, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 2, 7), Cells(ActiveCell.Row + 3, 7)).Address End If If Cells(ActiveCell.Row + 5, 1) = 4 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 3, 4), Cells(ActiveCell.Row + 2, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 3, 7), Cells(ActiveCell.Row + 2, 7)).Address End If If Cells(ActiveCell.Row + 5, 1) = 5 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 4, 4), Cells(ActiveCell.Row + 1, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 4, 7), Cells(ActiveCell.Row + 1, 7)).Address End If If Cells(ActiveCell.Row + 5, 1) = 6 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 5, 4), Cells(ActiveCell.Row, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 5, 7), Cells(ActiveCell.Row, 7)).Address End IfElse End If

If ComboBox7.Value = "Mult P - C - D" Then'Convertir Multi en CARACTER ComboBox8.FontSize = 50 ComboBox8.ForeColor = RGB(255, 255, 189) ComboBox9.FontSize = 24 ComboBox9.ForeColor = RGB(190, 254, 204) If Cells(ActiveCell.Row + 5, 1) = 1 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row, 4), Cells(ActiveCell.Row + 5, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row, 9), Cells(ActiveCell.Row + 5, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 2 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 1, 4), Cells(ActiveCell.Row + 4, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 1, 9), Cells(ActiveCell.Row + 4, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 3 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 2, 4), Cells(ActiveCell.Row + 3, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 2, 9), Cells(ActiveCell.Row + 3, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 4 Then

UFDatos - 22 ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 3, 4), Cells(ActiveCell.Row + 2, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 3, 9), Cells(ActiveCell.Row + 2, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 5 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 4, 4), Cells(ActiveCell.Row + 1, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 4, 9), Cells(ActiveCell.Row + 1, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 6 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 5, 4), Cells(ActiveCell.Row, 4)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 5, 9), Cells(ActiveCell.Row, 9)).Address End IfElse End If

If ComboBox7.Value = "Mult C - D" Then'Convertir Multi en DEFINICION ComboBox8.FontSize = 24 ComboBox8.ForeColor = RGB(190, 254, 204) ComboBox9.FontSize = 24 ComboBox9.ForeColor = RGB(190, 254, 204)

If Cells(ActiveCell.Row + 5, 1) = 1 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row, 9), Cells(ActiveCell.Row + 5, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 2 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 1, 9), Cells(ActiveCell.Row + 4, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 3 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 2, 9), Cells(ActiveCell.Row + 3, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 4 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 3, 9), Cells(ActiveCell.Row + 2, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 5 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 4, 9), Cells(ActiveCell.Row + 1, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 6 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 5, 9), Cells(ActiveCell.Row, 9)).Address End IfElse End IfIf ComboBox7.Value = "Mult C - P" Or ComboBox7.Value = "Mult C - P - D" Then'Convertir Multi en PINYIN ComboBox8.FontSize = 24 ComboBox8.ForeColor = RGB(191, 254, 254) ComboBox9.FontSize = 24 ComboBox9.ForeColor = RGB(190, 254, 204) If Cells(ActiveCell.Row + 5, 1) = 1 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row, 7), Cells(ActiveCell.Row + 5, 7)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row, 9), Cells(ActiveCell.Row + 5, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 2 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 1, 7), Cells(ActiveCell.Row + 4, 7)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 1, 9), Cells(ActiveCell.Row + 4, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 3 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 2, 7), Cells(ActiveCell.Row + 3, 7)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 2, 9), Cells(ActiveCell.Row + 3, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 4 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 3, 7), Cells(ActiveCell.Row + 2, 7)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 3, 9), Cells(ActiveCell.Row + 2, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 5 Then ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 4, 7), Cells(ActiveCell.Row + 1, 7)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 4, 9), Cells(ActiveCell.Row + 1, 9)).Address End If If Cells(ActiveCell.Row + 5, 1) = 6 Then

UFDatos - 23 ComboBox8.RowSource = Range(Cells(ActiveCell.Row - 5, 7), Cells(ActiveCell.Row, 7)).Address ComboBox9.RowSource = Range(Cells(ActiveCell.Row - 5, 9), Cells(ActiveCell.Row, 9)).Address End IfElse End IfEnd SubPrivate Sub ToggleButton11_Click() If ToggleButton11.Value = True Then ActiveCell.Offset(-1, 0).Select If CheckBox5 = True Then CommandButton6_Click End If If CheckBox6.Value = True Then TextBox3.ForeColor = RGB(128, 128, 128) End If If CheckBox7.Value = True Then TextBox4.Visible = False End If If CheckBox8.Value = True Then TextBox1.Visible = False End If If CheckBox9.Value = True Then TextBox2.Visible = False End If If CheckBox10.Value = True Then Textromanji.ForeColor = RGB(128, 128, 128) End If If CheckBox11.Value = True Then ToggleButton7.Value = True End If Else If CheckBox6.Value = True Then TextBox3.ForeColor = RGB(190, 254, 204) End If If CheckBox7.Value = True Then TextBox4.Visible = Visible End If If CheckBox8.Value = True Then TextBox1.Visible = Visible End If If CheckBox9.Value = True Then TextBox2.Visible = Visible End If If CheckBox10.Value = True Then Textromanji.ForeColor = RGB(191, 254, 254) End If If CheckBox11.Value = True Then ToggleButton7.Value = False End If End IfEnd Sub

Private Sub formato_Click()

If formato.Value = True Then TextBox1.Top = 30 TextBox1.Height = 65.25 TextBox1.Width = 876 TextBox1.Left = 32 TextBox1.FontSize = 55 Textnivel2.Top = 52 Textnivel2.Left = 0 TextBox2.Top = 200 TextBox2.Height = 65.25 TextBox2.Width = 876 TextBox2.Left = 32 TextBox2.FontSize = 53 TextBox3.Top = 137

UFDatos - 24 TextBox3.Height = 54 TextBox3.Width = 480 TextBox3.Left = 32 TextBox3.FontSize = 24 Textnivel.Top = 150 Textnivel.Left = 0 TextBox4.Top = 305 TextBox4.Height = 54 TextBox4.Width = 876 TextBox4.Left = 32 TextBox4.FontSize = 19 TextBox4.BorderStyle = 0 TextBox5.Top = 100 TextBox5.Height = 35.25 TextBox5.Width = 50 TextBox5.Left = 45 TextBox5.FontSize = 19 TextBox5.TextAlign = 2 Textnivel3.Top = 100 Textnivel3.Left = 0 TextBox6.Top = 100 TextBox6.Height = 35.25 TextBox6.Width = 50 TextBox6.Left = 98 TextBox6.FontSize = 19 TextBox6.TextAlign = 2 TextBox7.Top = 100 TextBox7.Height = 35.25 TextBox7.Width = 50 TextBox7.Left = 151 TextBox7.FontSize = 19 TextBox7.TextAlign = 2 TextBox8.Top = 100 TextBox8.Height = 35.25 TextBox8.Width = 50 TextBox8.Left = 204 TextBox8.FontSize = 19 TextBox8.TextAlign = 2 TextBox9.Top = 100 TextBox9.Height = 35.25 TextBox9.Width = 50 TextBox9.Left = 257 TextBox9.FontSize = 19 TextBox9.TextAlign = 2 TextBox10.Top = 100 TextBox10.Height = 35.25 TextBox10.Width = 50 TextBox10.Left = 310 TextBox10.FontSize = 19 TextBox10.TextAlign = 2 TextBox11.Top = 100 TextBox11.Height = 35.25 TextBox11.Width = 50 TextBox11.Left = 363 TextBox11.FontSize = 19 TextBox11.TextAlign = 2 TextBox12.Top = 100 TextBox12.Height = 35.25 TextBox12.Width = 50 TextBox12.Left = 416 TextBox12.FontSize = 20 TextBox12.TextAlign = 2

UFDatos - 25 TextBox13.Top = 100 TextBox13.Height = 35.25 TextBox13.Width = 50 TextBox13.Left = 469 TextBox13.FontSize = 20 TextBox13.TextAlign = 2 TextBox14.Top = 100 TextBox14.Height = 35.25 TextBox14.Width = 50 TextBox14.Left = 522 TextBox14.FontSize = 20 TextBox14.TextAlign = 2 TextBox15.Top = 100 TextBox15.Height = 35.25 TextBox15.Width = 50 TextBox15.Left = 575 TextBox15.FontSize = 20 TextBox15.TextAlign = 2 TextBox16.Top = 100 TextBox16.Height = 35.25 TextBox16.Width = 50 TextBox16.Left = 628 TextBox16.FontSize = 20 TextBox16.TextAlign = 2 TextBox17.Top = 100 TextBox17.Height = 35.25 TextBox17.Width = 50 TextBox17.Left = 681 TextBox17.FontSize = 20 TextBox17.TextAlign = 2 TextBox18.Top = 100 TextBox18.Height = 35.25 TextBox18.Width = 50 TextBox18.Left = 734 TextBox18.FontSize = 20 TextBox18.TextAlign = 2 TextBox19.Top = 100 TextBox19.Height = 35.25 TextBox19.Width = 50 TextBox19.Left = 787 TextBox19.FontSize = 20 TextBox19.TextAlign = 2 TextBox20.Top = 100 TextBox20.Height = 35.25 TextBox20.Width = 50 TextBox20.Left = 840 TextBox20.FontSize = 20 TextBox20.TextAlign = 2 Textromanji.Visible = False ComboBox8.Top = 190 ComboBox8.Left = 32 ComboBox8.Width = 500 ComboBox9.Top = 239.5 ComboBox9.Left = 32 ComboBox9.Width = 500 ToggleButton10.Top = 137 ToggleButton10.Height = 54 ToggleButton10.Left = 510 ToggleButton10.Width = 23 TextBox23.Top = 197 TextBox23.Left = 0 TextBox24.Top = 247 TextBox24.Left = 0 Else

UFDatos - 26 TextBox1.Top = 54 TextBox1.Height = 208.5 TextBox1.Width = 702 TextBox1.Left = 222 TextBox1.FontSize = 85 Textnivel2.Top = 190.5 Textnivel2.Left = 192 TextBox2.Top = 300 TextBox2.Height = 207 TextBox2.Width = 696 TextBox2.Left = 222 TextBox2.FontSize = 85 TextBox3.Top = 78 TextBox3.Height = 133 TextBox3.Width = 186 TextBox3.FontSize = 20 TextBox3.Left = 24 Textnivel.Top = 78 Textnivel.Left = 192 TextBox4.Top = 313.25 TextBox4.Height = 78 TextBox4.Width = 186 TextBox4.FontSize = 16 TextBox4.Left = 24 TextBox5.Top = 12 TextBox5.Height = 34 TextBox5.Width = 84 TextBox5.Left = 225 TextBox5.FontSize = 28 TextBox5.TextAlign = 2 Textnivel3.Top = 255 Textnivel3.Left = 192 TextBox6.Top = 12 TextBox6.Height = 34 TextBox6.Width = 84 TextBox6.Left = 310 TextBox6.FontSize = 28 TextBox6.TextAlign = 2 TextBox7.Top = 12 TextBox7.Height = 34 TextBox7.Width = 84 TextBox7.Left = 395 TextBox7.FontSize = 28 TextBox7.TextAlign = 2 TextBox8.Top = 12 TextBox8.Height = 34 TextBox8.Width = 84 TextBox8.Left = 480 TextBox8.FontSize = 28 TextBox8.TextAlign = 2 TextBox9.Top = 12 TextBox9.Height = 34 TextBox9.Width = 84 TextBox9.Left = 565 TextBox9.FontSize = 28 TextBox9.TextAlign = 2 TextBox10.Top = 12 TextBox10.Height = 34 TextBox10.Width = 84 TextBox10.Left = 650 TextBox10.FontSize = 28 TextBox10.TextAlign = 2 TextBox11.Top = 12

UFDatos - 27 TextBox11.Height = 34 TextBox11.Width = 84 TextBox11.Left = 735 TextBox11.FontSize = 28 TextBox11.TextAlign = 2 TextBox12.Top = 12 TextBox12.Height = 34 TextBox12.Width = 84 TextBox12.Left = 820 TextBox12.FontSize = 28 TextBox12.TextAlign = 2 TextBox13.Top = 270 TextBox13.Height = 34 TextBox13.Width = 84 TextBox13.Left = 225 TextBox13.FontSize = 28 TextBox13.TextAlign = 2 TextBox14.Top = 270 TextBox14.Height = 34 TextBox14.Width = 84 TextBox14.Left = 310 TextBox14.FontSize = 28 TextBox14.TextAlign = 2 TextBox15.Top = 270 TextBox15.Height = 34 TextBox15.Width = 84 TextBox15.Left = 395 TextBox15.FontSize = 28 TextBox15.TextAlign = 2 TextBox16.Top = 270 TextBox16.Height = 34 TextBox16.Width = 84 TextBox16.Left = 480 TextBox16.FontSize = 28 TextBox16.TextAlign = 2 TextBox17.Top = 270 TextBox17.Height = 34 TextBox17.Width = 84 TextBox17.Left = 565 TextBox17.FontSize = 28 TextBox17.TextAlign = 2 TextBox18.Top = 270 TextBox18.Height = 34 TextBox18.Width = 84 TextBox18.Left = 650 TextBox18.FontSize = 28 TextBox18.TextAlign = 2 TextBox19.Top = 270 TextBox19.Height = 34 TextBox19.Width = 84 TextBox19.Left = 735 TextBox19.FontSize = 28 TextBox19.TextAlign = 2 TextBox20.Top = 270 TextBox20.Height = 34 TextBox20.Width = 84 TextBox20.Left = 820 TextBox20.FontSize = 28 TextBox20.TextAlign = 2 Textromanji.Visible = True ComboBox8.Top = 154 ComboBox8.Left = 233 ComboBox8.Width = 445 ComboBox9.Top = 205 ComboBox9.Left = 233

UFDatos - 28 ComboBox9.Width = 445 ToggleButton10.Top = 450 ToggleButton10.Height = 23.25 ToggleButton10.Left = 99 ToggleButton10.Width = 57 TextBox23.Top = 158 TextBox23.Left = 205 TextBox24.Top = 210 TextBox24.Left = 205 End If

End Sub