Control de Stocks

8
ADMINISTRACIÓN DE ARTÍCULOS Y PRODUCTOS

description

stock

Transcript of Control de Stocks

FORMULARIO

PRODUCTOCODIGO DEL PRODUCTONOMBREDESCRIPCION00001ZINCPRODFRASCOS EN PRESENTACION DE 1LT (12LTS POR CAJA)

ENTRADASCODIGO DEL PRODUCTONOMBRECANTIDADPROVEEDORF.RECEPCIONN ALBARAN PROVEEDOR00001ZINCPROD45AGROPRODUCTIVA13/12/2014PEP - 0001

SALIDASCODIGO DEL PRODUCTONOMBRECANTIDAD SALIDACLIENTEF.SALIDAN ALBARAN SALIDA

SALDOCODIGO DEL PRODUCTONOMBRECANTIDAD00001ZINCPROD45

Attribute VB_Name = "UserForm7"Attribute VB_Base = "0{D0875323-D04B-40BC-B65A-44E3D2F9F8DF}{E429E803-FD4D-42C0-9E98-2226FA057C51}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm7.HideEnd Sub

Attribute VB_Name = "UserForm8"Attribute VB_Base = "0{2081FD02-6A9B-4848-95C3-4967979449E5}{09473DC5-8279-49FE-B96F-B7C81D401F38}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm8.HideEnd Sub

Attribute VB_Name = "UserForm9"Attribute VB_Base = "0{C02A33F4-489B-4CFC-BA0D-50AAE3F6C18D}{1FB5E054-07E4-4A61-877A-333C2E4BF320}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()Dim i As IntegerDim final As Integer

For i = 1 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = iExit ForEnd IfNext

Hoja5.Cells(final, 1) = UserForm5.TextBox8Hoja5.Cells(final, 2) = UserForm5.TextBox1Hoja5.Cells(final, 3) = UserForm5.TextBox9

Hoja6.Cells(final, 1) = UserForm5.TextBox8Hoja6.Cells(final, 2) = UserForm5.TextBox1Hoja6.Cells(final, 3) = 0

UserForm5.TextBox8 = ""UserForm5.TextBox1 = ""UserForm5.TextBox9 = ""

UserForm9.HideUserForm5.Hide

End Sub

Private Sub CommandButton2_Click()UserForm9.HideEnd Sub

Attribute VB_Name = "UserForm3"Attribute VB_Base = "0{A8C61751-E91B-4505-BDD6-2EDE5AFFA13C}{ACFBD40D-EEA4-435C-9B17-C9E4E346280D}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = False

Private Sub ComboBox1_Click()Dim i As IntegerDim final As IntegerDim FINAL2 As IntegerDim j As Integer

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

For i = 2 To 1000If Hoja6.Cells(i, 1) = "" ThenFINAL2 = i - 1Exit ForEnd IfNext

For i = 2 To finalIf ComboBox1 = Hoja5.Cells(i, 1) ThenTextBox1 = Hoja5.Cells(i, 2)Exit ForEnd IfNext

For j = 1 To FINAL2If ComboBox1 = Hoja6.Cells(j, 1) ThenTextBox2 = Hoja6.Cells(j, 3)Exit ForEnd IfNextEnd Sub

Private Sub ComboBox1_Enter()Dim i As IntegerDim final As IntegerDim tareas As String

ComboBox1.BackColor = &H80000005

For i = 1 To ComboBox1.ListCount

'Remove an item from the ListBox. ComboBox1.RemoveItem 0

Next i

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

'If ComboBox1.ListCount < 1 Then

'ComboBox1.AddItem "-"For i = 2 To finaltareas = Hoja5.Cells(i, 1)ComboBox1.AddItem (tareas)Next

'End If

End Sub

Private Sub CommandButton1_Click()

End Sub

Private Sub CommandButton2_Click()

End Sub

Private Sub CommandButton3_Click()Dim validar As BooleanDim validarfecha As Boolean

If TextBox1 = "" ThenUserForm16.ShowExit SubEnd If

If TextBox8 = "" ThenUserForm17.ShowExit SubEnd If

If TextBox4 = "" ThenUserForm20.ShowExit SubEnd If

If TextBox6 = "" ThenUserForm19.ShowExit SubEnd If

If TextBox7 = "" ThenUserForm18.ShowExit SubEnd If

validar = IsNumeric(TextBox8.Value)If validar = False ThenUserForm24.ShowTextBox8.BackColor = &HFF00&Exit SubEnd If

validarfecha = IsDate(TextBox6.Value)If validarfecha = False ThenUserForm25.ShowTextBox6.BackColor = &HFF00&Exit SubEnd If

If TextBox1 "" And TextBox4 "" And TextBox6 "" And TextBox7 "" And TextBox8 "" ThenTextBox8.BackColor = -2147483643TextBox6.BackColor = -2147483643UserForm21.ShowEnd IfEnd Sub

Private Sub CommandButton4_Click()UserForm3.HideEnd Sub

Private Sub TextBox8_Change()Dim i As IntegerDim final As IntegerDim j As IntegerDim antes As IntegerDim validar As BooleanDim ahora As Double

Dim SALDO As Double

For i = 1 To 1000If Hoja6.Cells(i, 1) = "" Thenfinal = iExit ForEnd IfNext

For j = 1 To finalIf ComboBox1 = Hoja6.Cells(j, 1) Thenantes = Hoja6.Cells(j, 3)

validar = IsNumeric(TextBox8.Value)If validar = False ThenUserForm24.ShowTextBox8.BackColor = &HFF00&Exit SubEnd If

ahora = TextBox8If TextBox8 = "" Or TextBox8 = 0 Thenahora = 0TextBox9 = ""End If

SALDO = antes - ahoraTextBox9 = SALDOExit For

End IfNextEnd Sub

Attribute VB_Name = "UserForm4"Attribute VB_Base = "0{B17E9D4F-866D-4091-A4B1-A71F8282079C}{867E8EC8-E304-4A8F-A715-94D9CB36470A}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()Dim NUEVO As ObjectDim ORIGEN As StringDim i As IntegerDim j As IntegerDim final As IntegerDim VALOR As String

Set NUEVO = Workbooks.AddNUEVO.ActivateORIGEN = ActiveWorkbook.NameFor i = 1 To 1000

If Hoja6.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

VALOR = Hoja6.Cells(1, 1)

For j = 1 To final

'***** funciona

Application.Workbooks(ORIGEN).Worksheets(1).Cells(1, 1) = "INFORME STOCK ACTUAL DE TODOS LOS PRODUCTOS"Application.Workbooks(ORIGEN).Worksheets(1).Cells(j + 2, 1) = Hoja6.Cells(j, 1)Application.Workbooks(ORIGEN).Worksheets(1).Cells(j + 2, 2) = Hoja6.Cells(j, 2)Application.Workbooks(ORIGEN).Worksheets(1).Cells(j + 2, 3) = Hoja6.Cells(j, 3)Next

'formatoNUEVO.Activate Range("A1:F1").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With With Selection.Interior .ColorIndex = 10 .Pattern = xlSolid End With Selection.Font.ColorIndex = 2 Selection.Font.Bold = True Cells.Select Cells.EntireColumn.AutoFit Range("A3:C3").Select Selection.Font.Bold = True Range("A18").Select

UserForm4.HideUserForm1.HideHoja2.Visible = xlSheetVeryHiddenHoja3.Visible = xlSheetVeryHiddenHoja5.Visible = xlSheetVeryHiddenHoja6.Visible = xlSheetVeryHiddenHoja1.Cells(3, 1) = ""End Sub

Private Sub CommandButton10_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton11_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton12_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton2_Click()UserForm27.ShowEnd Sub

Private Sub CommandButton3_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton4_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton5_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton6_Click()UserForm32.ShowEnd Sub

Private Sub CommandButton8_Click()UserForm4.HideEnd Sub

Private Sub CommandButton9_Click()UserForm32.ShowEnd Sub

Attribute VB_Name = "UserForm5"Attribute VB_Base = "0{2DFA8E0E-5011-4663-B841-0B0ADFA8F044}{1C8B4179-C7FC-47F3-B417-A648A3DFF4A8}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()

End Sub

Private Sub CommandButton2_Click()UserForm5.HideEnd Sub

Private Sub CommandButton3_Click()Dim i As IntegerDim final As IntegerDim j As Integer

If TextBox8 = "" ThenUserForm6.ShowExit SubEnd If

If TextBox1 = "" ThenUserForm7.ShowExit SubEnd If

If TextBox9 = "" ThenUserForm8.ShowExit SubEnd If

For i = 1 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = iExit ForEnd IfNext

For j = 2 To finalIf Hoja5.Cells(j, 1) = TextBox8 ThenUserForm26.ShowTextBox8.BackColor = &HFF00&Exit SubExit ForEnd IfNext

If TextBox8 "" And TextBox9 "" And TextBox1 "" ThenTextBox8.BackColor = -2147483643UserForm9.ShowEnd IfEnd Sub

Attribute VB_Name = "UserForm6"Attribute VB_Base = "0{4816E342-F4EC-4A46-A721-3C5F88ABC59D}{75E4CDB6-1B4C-4871-8798-90D1100903A5}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm6.HideEnd Sub

Attribute VB_Name = "UserForm21"Attribute VB_Base = "0{FC444DC5-A7F5-466A-9E8A-D2360848A195}{2B96A69E-34CC-4F9A-A94E-17610431D2CD}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()Dim i As IntegerDim final As IntegerDim j As IntegerDim actual As Double

For i = 1 To 1000If Hoja3.Cells(i, 1) = "" Thenfinal = iExit ForEnd IfNext

Hoja3.Cells(final, 1) = UserForm3.ComboBox1Hoja3.Cells(final, 2) = UserForm3.TextBox1Hoja3.Cells(final, 3) = UserForm3.TextBox8Hoja3.Cells(final, 4) = UserForm3.TextBox4Hoja3.Cells(final, 5) = UserForm3.TextBox6Hoja3.Cells(final, 6) = UserForm3.TextBox7

For j = 1 To 1000If Hoja6.Cells(j, 1) = Hoja3.Cells(final, 1) Thenactual = Hoja6.Cells(j, 3)final = actual - UserForm3.TextBox8Hoja6.Cells(j, 3) = finalExit ForEnd IfNext

UserForm3.ComboBox1 = ""UserForm3.TextBox1 = ""UserForm3.TextBox2 = ""UserForm3.TextBox4 = ""UserForm3.TextBox6 = ""UserForm3.TextBox7 = ""UserForm3.TextBox8 = 0UserForm3.TextBox9 = ""

UserForm21.HideUserForm3.HideEnd Sub

Private Sub CommandButton2_Click()UserForm21.HideEnd Sub

Attribute VB_Name = "UserForm22"Attribute VB_Base = "0{E0C84476-1AFC-40A9-B6FC-21018D8A48ED}{076F4BD1-0105-4E79-AF16-DEBBFBB435A2}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm22.HideEnd Sub

Attribute VB_Name = "UserForm1"Attribute VB_Base = "0{5852912B-A0B4-4CE1-AB80-6BEB25A36514}{B7370690-19ED-4195-8DAF-3A0D377A3DFA}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm2.Show

End Sub

Private Sub CommandButton2_Click()UserForm3.ShowEnd Sub

Private Sub CommandButton3_Click()UserForm4.ShowEnd Sub

Private Sub CommandButton4_Click()UserForm5.ShowEnd Sub

Private Sub CommandButton5_Click()UserForm1.HideHoja2.Visible = xlSheetVeryHiddenHoja3.Visible = xlSheetVeryHiddenHoja5.Visible = xlSheetVeryHiddenHoja6.Visible = xlSheetVeryHidden

End Sub

Private Sub CommandButton6_Click()UserForm28.ShowEnd Sub

Private Sub CommandButton7_Click()UserForm31.ShowEnd Sub

Private Sub CommandButton8_Click()UserForm30.ShowEnd Sub

Attribute VB_Name = "UserForm20"Attribute VB_Base = "0{C5F18428-8BB2-4C73-AEC4-26C13492DFA8}{83948F62-4176-40E2-BECF-76A5682FBBC9}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm20.HideEnd Sub

Attribute VB_Name = "UserForm2"Attribute VB_Base = "0{0AE1E61A-66EA-42FB-943A-F1DDFC8DD22B}{35B5F458-F386-4359-84EA-54DEC9D97445}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub ComboBox1_Click()Dim i As IntegerDim j As IntegerDim final As IntegerDim FINAL2 As Integer

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

For i = 2 To 1000If Hoja6.Cells(i, 1) = "" ThenFINAL2 = i - 1Exit ForEnd IfNext

For i = 2 To finalIf ComboBox1 = Hoja5.Cells(i, 1) ThenTextBox1 = Hoja5.Cells(i, 2)Exit ForEnd IfNext

For j = 1 To FINAL2If ComboBox1 = Hoja6.Cells(j, 1) ThenTextBox8 = Hoja6.Cells(j, 3)Exit ForEnd IfNext

End Sub

Private Sub ComboBox1_Enter()Dim i As IntegerDim j As IntegerDim H As IntegerDim final As IntegerDim tareas As String

ComboBox1.BackColor = &H80000005

For i = 1 To ComboBox1.ListCount

ComboBox1.RemoveItem 0

Next i

For j = 2 To 1000If Hoja5.Cells(j, 1) = "" Thenfinal = j - 1Exit ForEnd IfNext

For H = 2 To finaltareas = Hoja5.Cells(H, 1)ComboBox1.AddItem (tareas)Next

'End If

End Sub

Private Sub CommandButton1_Click()Dim validar As BooleanDim validarfecha As Boolean If TextBox1 = "" ThenUserForm10.ShowExit SubEnd If

If TextBox2 = "" ThenUserForm11.ShowExit SubEnd If

If TextBox4 = "" ThenUserForm12.ShowExit SubEnd If

If TextBox6 = "" ThenUserForm13.ShowExit SubEnd If

If TextBox7 = "" ThenUserForm14.ShowExit SubEnd If

validar = IsNumeric(TextBox2.Value)If validar = False ThenUserForm22.ShowTextBox2.BackColor = &HFF00&Exit SubEnd If

validarfecha = IsDate(TextBox6.Value)If validarfecha = False ThenUserForm23.ShowTextBox6.BackColor = &HFF00&Exit SubEnd If

If TextBox2 "" And TextBox1 "" And TextBox4 "" And TextBox6 "" And TextBox7 "" ThenTextBox2.BackColor = -2147483643TextBox6.BackColor = -2147483643UserForm15.ShowEnd If

End Sub

Private Sub CommandButton2_Click()UserForm2.HideEnd Sub

Attribute VB_Name = "UserForm25"Attribute VB_Base = "0{AB6C34F1-E2BE-4D0A-A6AC-1021499D38A4}{8229D19A-FCD3-462D-93F7-DF7C2CF0105E}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm25.HideEnd Sub

Attribute VB_Name = "UserForm26"Attribute VB_Base = "0{5C0EDC10-C921-4338-A602-799F0A0A4169}{C6C93A9E-EC50-4250-9B3C-6970559A8AB9}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm26.HideEnd Sub

Attribute VB_Name = "UserForm23"Attribute VB_Base = "0{2F898DBE-D3E1-4E16-BA22-2651D4B8547A}{AFAFEDE4-66CA-4E46-9FB5-0EBD01895557}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm23.HideEnd Sub

Attribute VB_Name = "UserForm24"Attribute VB_Base = "0{45F4B1E0-B998-4AB5-BD60-3BBC4A905CB2}{E84E42C7-95DA-4E7B-9B49-B350D04F8B28}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm24.HideEnd Sub

Attribute VB_Name = "UserForm29"Attribute VB_Base = "0{7AE5F509-FEB9-4C80-82B7-4C1859077472}{1C74EBCB-9E8B-4B5A-BDE5-2CBA156BCF7C}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()Dim i As IntegerDim final As Integer

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

For i = 2 To finalIf UserForm28.ComboBox1 = Hoja5.Cells(i, 1) ThenHoja5.Cells(i, 2) = UserForm28.TextBox1Hoja5.Cells(i, 3) = UserForm28.TextBox9Exit ForEnd IfNextUserForm28.ComboBox1 = ""UserForm28.TextBox1 = ""UserForm28.TextBox9 = ""UserForm29.HideUserForm28.HideEnd Sub

Private Sub CommandButton2_Click()UserForm29.HideUserForm28.HideEnd Sub

Attribute VB_Name = "UserForm27"Attribute VB_Base = "0{FA9A72F2-AA57-4871-9CE1-2C755867AA57}{25FC0836-E2BF-4F30-BFC6-1C5A7D03D2A6}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub ComboBox1_Enter()Dim i As DoubleDim final As DoubleDim tareas As String

ComboBox1.BackColor = &H80000005

For i = 1 To ComboBox1.ListCount

'Remove an item from the ListBox. ComboBox1.RemoveItem 0

Next i

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

'If ComboBox1.ListCount < 1 Then

'ComboBox1.AddItem "-"For i = 2 To finaltareas = Hoja5.Cells(i, 1)ComboBox1.AddItem (tareas)Next

'End If

End Sub

Private Sub ComboBox1_Click()Dim i As IntegerDim final As Integer

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

For i = 2 To finalIf ComboBox1 = Hoja5.Cells(i, 1) ThenTextBox1 = Hoja5.Cells(i, 2)Exit ForEnd IfNext

End Sub

Private Sub CommandButton1_Click()Dim NUEVO As ObjectDim i As IntegerDim H As IntegerDim L As IntegerDim M As IntegerDim j As IntegerDim T As IntegerDim FINALTOTAL As Integer

Dim final As IntegerDim FINAL2 As IntegerDim ORIGEN As StringDim SALDO As DoubleDim VALOR As StringDim CONTAR As DoubleDim CONTAR1 As Double

Set NUEVO = Workbooks.AddNUEVO.ActivateORIGEN = ActiveWorkbook.Name

For i = 1 To 1000'ENTRADASIf Hoja2.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext'SALIDASFor H = 1 To 1000If Hoja3.Cells(H, 1) = "" ThenFINAL2 = H - 1Exit ForEnd IfNext

VALOR = UserForm27.ComboBox1' ENTRADASCONTAR = 10' ASIGNAR VALORES PARA EL INFORMEApplication.Workbooks(ORIGEN).Worksheets(1).Cells(1, 1) = "INFORME MOVIMIENTOS POR REFERENCIA"Application.Workbooks(ORIGEN).Worksheets(1).Cells(3, 2) = VALORFor L = 1 To 1000If Hoja5.Cells(L, 1) = VALOR ThenApplication.Workbooks(ORIGEN).Worksheets(1).Cells(4, 2) = Hoja5.Cells(L, 2)Application.Workbooks(ORIGEN).Worksheets(1).Cells(5, 2) = Hoja5.Cells(L, 3)Exit ForEnd IfNext

For M = 1 To 1000If Hoja6.Cells(M, 1) = VALOR ThenApplication.Workbooks(ORIGEN).Worksheets(1).Cells(6, 2) = Hoja6.Cells(M, 3)SALDO = Hoja6.Cells(M, 3)Exit ForEnd IfNext

For j = 1 To finalIf Hoja2.Cells(j, 1) = VALOR ThenCONTAR = CONTAR + 1'***** funciona entradasApplication.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR, 2) = Hoja2.Cells(j, 6)Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR, 3) = Hoja2.Cells(j, 4)Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR, 4) = Hoja2.Cells(j, 5)Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR, 5) = 1 * Hoja2.Cells(j, 3)

End IfNext

' SALIDASCONTAR1 = 10

For j = 1 To final

If Hoja3.Cells(j, 1) = VALOR ThenCONTAR1 = CONTAR1 + 1

Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR1, 6) = Hoja3.Cells(j, 6)Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR1, 7) = Hoja3.Cells(j, 4)Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR1, 8) = Hoja3.Cells(j, 5)Application.Workbooks(ORIGEN).Worksheets(1).Cells(CONTAR1, 9) = -Hoja3.Cells(j, 3)

End IfNext

' CALCULAR FINALFor T = 11 To 1000If Application.Workbooks(ORIGEN).Worksheets(1).Cells(T, 5) = "" And Application.Workbooks(ORIGEN).Worksheets(1).Cells(T, 9) = "" ThenFINALTOTAL = TExit ForEnd IfNextApplication.Workbooks(ORIGEN).Worksheets(1).Cells(FINALTOTAL, 8) = "SALDO"Application.Workbooks(ORIGEN).Worksheets(1).Cells(FINALTOTAL, 9) = SALDO

'*************** FORMATONUEVO.Activate

Range(Cells(FINALTOTAL, 8), Cells(FINALTOTAL, 9)).Select Selection.Font.Bold = True Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone With Selection.Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeTop) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With Selection.Borders(xlInsideVertical).LineStyle = xlNone Range("H16").Select

Range("A1:I1").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With With Selection.Interior .ColorIndex = 10 .Pattern = xlSolid End With Selection.Font.ColorIndex = 2 Selection.Font.Bold = True Range("A3").Select 'Windows("Libro13").Activate 'Windows("INFORME POR REFERENCIA.xls").Activate 'Windows("Libro15").Activate ActiveCell.FormulaR1C1 = "REFERENCIA" Range("A4").Select ActiveCell.FormulaR1C1 = "NOMBRE" Range("A5").Select ActiveCell.FormulaR1C1 = "DESCRIPCION" Range("A6").Select ActiveCell.FormulaR1C1 = "STOCK ACTUAL" Range("B5:I5").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Range("B4:I4").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Range("B3:I3").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Range("B6:I6").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = True End With Range("B8").Select 'Windows("INFORME POR REFERENCIA.xls").Activate 'Windows("Libro15").Activate ActiveCell.FormulaR1C1 = "" Range("B9").Select ActiveCell.FormulaR1C1 = "N ALBARAN" Range("C9").Select ActiveCell.FormulaR1C1 = "PROVEEDOR" Range("D9").Select ActiveCell.FormulaR1C1 = "F.ENTRADA" Range("E9").Select ActiveCell.FormulaR1C1 = "C.ENTRADA" Range("F9").Select ActiveCell.FormulaR1C1 = "N ALBARAN" Range("G9").Select ActiveCell.FormulaR1C1 = "CLIENTE" Range("H9").Select ActiveCell.FormulaR1C1 = "F.SALIDA" Range("I9").Select ActiveCell.FormulaR1C1 = "C.SALIDA" Range("B8:E8").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone With Selection.Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeTop) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With Selection.Borders(xlInsideVertical).LineStyle = xlNone ActiveCell.FormulaR1C1 = "ENTRADA" Range("B8:E8").Select With Selection.Interior .ColorIndex = 3 .Pattern = xlSolid End With Selection.Font.ColorIndex = 2 Selection.Font.Bold = True Range("F8:I8").Select With Selection .HorizontalAlignment = xlCenter .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With Selection.Merge With Selection.Interior .ColorIndex = 10 .Pattern = xlSolid End With Range("F8:I8").Select ActiveCell.FormulaR1C1 = "SALIDA" Range("F8:I8").Select Selection.Font.ColorIndex = 2 Selection.Font.Bold = True Range("B9:I9").Select Selection.Font.Bold = True Range("B9:I9").Select Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone With Selection.Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeTop) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With With Selection.Borders(xlInsideVertical) .LineStyle = xlContinuous .Weight = xlThin .ColorIndex = xlAutomatic End With 'With Selection.Borders(xlInsideHorizontal) '.LineStyle = xlContinuous '.Weight = xlThin '.ColorIndex = xlAutomatic 'End With Cells.Select Cells.EntireColumn.AutoFit Range("F8:I8").Select Selection.Borders(xlDiagonalDown).LineStyle = xlNone Selection.Borders(xlDiagonalUp).LineStyle = xlNone With Selection.Borders(xlEdgeLeft) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeTop) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeBottom) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With With Selection.Borders(xlEdgeRight) .LineStyle = xlContinuous .Weight = xlMedium .ColorIndex = xlAutomatic End With Selection.Borders(xlInsideVertical).LineStyle = xlNone Range("A2").Select '***********************************

UserForm27.ComboBox1 = ""UserForm27.TextBox1 = ""

UserForm27.HideUserForm4.HideUserForm1.HideHoja2.Visible = xlSheetVeryHiddenHoja3.Visible = xlSheetVeryHiddenHoja5.Visible = xlSheetVeryHiddenHoja6.Visible = xlSheetVeryHidden Hoja1.Cells(3, 1) = ""End Sub

Attribute VB_Name = "UserForm28"Attribute VB_Base = "0{9423892B-A434-422E-9F6D-075B0BD87498}{2B518014-201A-4345-B715-1062986995B7}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = False

Private Sub ComboBox1_Enter()Dim i As IntegerDim final As IntegerDim tareas As String

ComboBox1.BackColor = &H80000005

For i = 1 To ComboBox1.ListCount

'Remove an item from the ListBox. ComboBox1.RemoveItem 0

Next i

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

'If ComboBox1.ListCount < 1 Then

'ComboBox1.AddItem "-"For i = 2 To finaltareas = Hoja5.Cells(i, 1)ComboBox1.AddItem (tareas)Next

'End If

End Sub

Private Sub ComboBox1_Click()Dim i As IntegerDim final As Integer

For i = 2 To 1000If Hoja5.Cells(i, 1) = "" Thenfinal = i - 1Exit ForEnd IfNext

For i = 2 To finalIf ComboBox1 = Hoja5.Cells(i, 1) ThenTextBox1 = Hoja5.Cells(i, 2)TextBox9 = Hoja5.Cells(i, 3)Exit ForEnd IfNext

End Sub

Private Sub CommandButton1_Click()UserForm29.ShowEnd Sub

Private Sub CommandButton2_Click()UserForm28.HideEnd Sub

Attribute VB_Name = "ThisWorkbook"Attribute VB_Base = "0{00020819-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "UserForm32"Attribute VB_Base = "0{A81D9808-D8FF-411C-87BC-B44E7F01DF1A}{F6BFAED8-99C6-4741-BD0F-67386DD43A0B}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm32.HideEnd Sub

Attribute VB_Name = "UserForm10"Attribute VB_Base = "0{B497050F-7F9C-470D-9681-6B247EDE1A42}{DE8FCE3B-D785-4E4E-86EA-C747BA7284E3}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm10.HideEnd Sub

Attribute VB_Name = "UserForm11"Attribute VB_Base = "0{C1B59501-87D0-4D04-B6D3-6528197EE8CB}{4574712C-E981-4563-9222-C1B956D3C1E6}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm11.HideEnd Sub

Attribute VB_Name = "UserForm30"Attribute VB_Base = "0{2DFCACB6-2C91-42BD-AB3B-7AF314C68EE4}{CE06A4B5-C797-433A-8689-E9E08A16B756}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm30.HideEnd Sub

Attribute VB_Name = "UserForm31"Attribute VB_Base = "0{244EF2BE-633F-4BD2-AA78-7D52C900A11D}{6D528623-650A-45FF-B6C5-8F76EA477657}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()Hoja2.Visible = xlSheetVisibleHoja3.Visible = xlSheetVisibleHoja5.Visible = xlSheetVisibleHoja6.Visible = xlSheetVisible Sheets("PRODUCTO").Select Range("A2:I18670").Select Selection.ClearContents Sheets("ENTRADAS").Select Range("A2:I18670").Select Selection.ClearContents Sheets("SALIDAS").Select Range("A2:I18670").Select Selection.ClearContents Sheets("PRODUCTO").Select Range("A2:I18670").Select Selection.ClearContents Sheets("SALDO").Select Range("A2:I18670").Select Selection.ClearContents Hoja1.Activate Cells(1, 1).Select UserForm31.HideHoja2.Visible = xlSheetVeryHiddenHoja3.Visible = xlSheetVeryHiddenHoja5.Visible = xlSheetVeryHiddenHoja6.Visible = xlSheetVeryHiddenEnd Sub

Private Sub CommandButton2_Click()UserForm31.HideEnd Sub

Attribute VB_Name = "UserForm14"Attribute VB_Base = "0{E58E005F-7147-4F65-BD0D-C6A4D9B5BC7A}{2DAAEA18-C402-4852-85C6-7142BC61CC2B}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm14.HideEnd Sub

Attribute VB_Name = "UserForm15"Attribute VB_Base = "0{DE8165CB-D8C0-4A44-B2DD-E4367B829D47}{BAAA0610-C9ED-4391-A5BF-0FF4EB96A6F3}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()Dim i As IntegerDim j As IntegerDim final As IntegerDim actual As Integer

For i = 1 To 1000If Hoja2.Cells(i, 1) = "" Thenfinal = iExit ForEnd IfNext

Hoja2.Cells(final, 1) = UserForm2.ComboBox1Hoja2.Cells(final, 2) = UserForm2.TextBox1Hoja2.Cells(final, 3) = UserForm2.TextBox2Hoja2.Cells(final, 4) = UserForm2.TextBox4Hoja2.Cells(final, 5) = UserForm2.TextBox6Hoja2.Cells(final, 6) = UserForm2.TextBox7

For j = 1 To 1000If Hoja6.Cells(j, 1) = Hoja2.Cells(final, 1) Thenactual = Hoja6.Cells(j, 3)final = UserForm2.TextBox2 + actualHoja6.Cells(j, 3) = finalExit ForEnd IfNext

UserForm2.ComboBox1 = ""UserForm2.TextBox1 = ""UserForm2.TextBox2 = ""UserForm2.TextBox4 = ""UserForm2.TextBox6 = ""UserForm2.TextBox7 = ""UserForm2.TextBox8 = ""

UserForm15.HideUserForm2.Hide

End Sub

Private Sub CommandButton2_Click()UserForm15.HideEnd Sub

Attribute VB_Name = "UserForm12"Attribute VB_Base = "0{3BF0A0EB-F55A-4492-B6FD-B83DFF544B1F}{1D1B2245-587F-43AA-A38A-9706DEBE3D8A}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm12.HideEnd Sub

Attribute VB_Name = "Hoja6"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "UserForm13"Attribute VB_Base = "0{8A6377AB-4208-4632-99AE-3857A0FDF4E7}{488D171C-12A2-4097-A746-BF6E8017D9D5}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm13.HideEnd Sub

Attribute VB_Name = "UserForm18"Attribute VB_Base = "0{FDFA3604-474B-4B20-B793-A58D7654FEDC}{A87C4299-29B9-4D14-A748-D1DF437AE896}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm18.HideEnd Sub

Attribute VB_Name = "UserForm19"Attribute VB_Base = "0{24333545-F3A3-42F9-9A33-4491C90C2EB8}{2FB6A6D0-7EB6-494E-A34E-597FDA751F1C}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm19.HideEnd Sub

Attribute VB_Name = "UserForm16"Attribute VB_Base = "0{AEC19CD3-0E3E-4CFC-B1D9-B90AA202D07A}{A51BF67C-0B3F-48B8-B522-B4E997ED4315}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm16.HideEnd Sub

Attribute VB_Name = "Mdulo1"

Attribute VB_Name = "UserForm17"Attribute VB_Base = "0{F3C8CCDF-70CE-4C3D-99E5-4A09601D0A74}{C7C67735-55E9-4C88-9B51-B1EB2D4AD204}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = FalseAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = FalsePrivate Sub CommandButton1_Click()UserForm17.HideEnd Sub

Attribute VB_Name = "Mdulo2"

Attribute VB_Name = "Hoja1"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = TrueAttribute VB_Control = "CommandButton1, 1, 0, MSForms, CommandButton"Private Sub CommandButton1_Click()UserForm1.ShowHoja2.Visible = xlSheetVisibleHoja3.Visible = xlSheetVisibleHoja5.Visible = xlSheetVisibleHoja6.Visible = xlSheetVisible

End Sub

Private Sub Worksheet_Activate()Hoja2.Visible = xlSheetVeryHiddenHoja3.Visible = xlSheetVeryHiddenHoja5.Visible = xlSheetVeryHiddenHoja6.Visible = xlSheetVeryHiddenEnd Sub

Attribute VB_Name = "Hoja5"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Hoja2"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True

Attribute VB_Name = "Hoja3"Attribute VB_Base = "0{00020820-0000-0000-C000-000000000046}"Attribute VB_GlobalNameSpace = FalseAttribute VB_Creatable = FalseAttribute VB_PredeclaredId = TrueAttribute VB_Exposed = TrueAttribute VB_TemplateDerived = FalseAttribute VB_Customizable = True