4_5_7

Post on 16-Nov-2015

212 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

4_5_7 hoy

TRANSCRIPT

Base Diciembre 2007INDICE NACIONAL DE PRECIOS AL CONSUMIDORSerie desde Diciembre 2007( BASE Diciembre 2007 = 100 )IndiceVar%2013Octubre464.95.1Septiembre442.34.4Agosto423.73.0Julio411.33.2Junio398.64.7Mayo380.76.1Abril358.84.3Marzo344.12.8Febrero334.81.6Enero329.43.32012Diciembre318.93.5Noviembre308.12.3Octubre301.21.7Septiembre296.11.6Agosto291.51.1Julio288.41.0Junio285.51.4Mayo281.51.6Abril277.20.8Marzo275.00.9Febrero272.61.1Enero269.61.52011Diciembre265.61.8Noviembre261.02.2Octubre255.51.8Septiembre250.91.6Agosto246.92.2Julio241.62.7Junio235.32.5Mayo229.62.5Abril223.91.4Marzo220.71.4Febrero217.61.7Enero213.92.72010Diciembre208.21.8Noviembre204.51.5Octubre201.41.5Septiembre198.41.1Agosto196.21.6Julio193.11.4Junio190.41.8Mayo187.02.6Abril182.25.2Marzo173.22.4Febrero169.11.6Enero166.51.72009Diciembre163.71.7Noviembre161.01.9Octubre158.01.9Septiembre155.12.5Agosto151.32.2Julio148.02.1Junio145.01.8Mayo142.52.0Abril139.71.8Marzo137.21.2Febrero135.61.3Enero133.92.32008Diciembre130.92.6Noviembre127.62.3Octubre124.72.4Septiembre121.82.0Agosto119.41.8Julio117.31.9Junio115.12.4Mayo112.43.2Abril108.91.7Marzo107.11.7Febrero105.32.1Enero103.13.12007Diciembre100.0

&APgina &P

Attribute VB_Name = "Mdulo1"

Sub ordenar()Attribute ordenar.VB_ProcData.VB_Invoke_Func = "h\n14"'' ordenar Macro' Macro recorded 12/06/2000 by Mariana Hardy'' Keyboard Shortcut: Ctrl+h'' DESCRIPCION: Recorre todos las hojas diferentes a "netp417", "netp417f" y "Mdulo1"' copiando los datos a la hoja "netp417".

Sheets("netp417f").Select Cells.Select Selection.ClearContents Range("A1").Select ActiveCell.FormulaR1C1 = "year" Sheets("netp417").Select Cells.Select Selection.ClearContents Range("A1").Select ActiveCell.FormulaR1C1 = "tipo" Range("B1").Select ActiveCell.FormulaR1C1 = "ango" Range("C1").Select ActiveCell.FormulaR1C1 = "fecha" Range("D1").Select ActiveCell.FormulaR1C1 = "indice" Range("E1").Select ActiveCell.FormulaR1C1 = "var" Dim a As IntegerDim b As IntegerDim c As IntegerDim hasta As IntegerDim s As StringDim cont As IntegerDim cn As IntegerDim inicio As IntegerDim final As IntegerDim cont_final As Integer

cn = 2a = 1cont_fila = 2

For a = 1 To Sheets.Count s = Sheets(a).Nameb = 2 If s "netp417" And s "netp417f" And s "Mdulo1" Then Sheets(s).Select cont = 1 While Not (Range("A" & cont).Value = "FIN") cont = cont + 1 Wend hasta = cont - 30 Range("A10:C" & hasta).Select Selection.Copy Sheets("netp417").Select Range("C" & cn).Select ActiveSheet.Paste final = hasta + cn - 10 For inicio = cn To final Range("A" & inicio).Value = s Next inicio final = hasta ante = 0 cantidad = 10 Sheets(s).Select For inicio = 10 To final

If IsNumeric(Range("A" & inicio)) Or inicio = final Then cantidad = 1 y = Range("A" & inicio).Value b = cont_fila End If unt = desde + ante If cantidad < ante Then Sheets("netp417").Select Range("B" & desde & ":B" & unt).Value = x Sheets(s).Select End If desde = b x = y cont_fila = cont_fila + 1 ante = cantidad cantidad = cantidad + 1 Next inicio cn = cn + hasta - 9

ce = a + 1 Sheets("netp417f").Select Range("A" & ce).Select Selection.Value = s Sheets(s).Select

End IfNext a

Sheets("netp417").Selecta = 1b = 1

While Not (IsEmpty(Range("A" & a).Value) And IsEmpty(Range("B" & b).Value)) If IsEmpty(Range("D" & a).Value) And IsEmpty(Range("E" & a).Value) Then Range("A" & a).Select Selection.EntireRow.Delete Else a = a + 1 b = b + 1 End IfWend

Cells.Select With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlBottom .WrapText = False .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .MergeCells = False End With Cells.Select With Selection.Font .Name = "Arial" .FontStyle = "Normal" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 2 End With Columns("B:B").Select Selection.NumberFormat = "General" Sheets("netp417f").Select Cells.Select With Selection.Font .Name = "Arial" .FontStyle = "Normal" .Size = 10 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 2 End With

End 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

top related