You are on page 1of 2

Sub Etiquetas() ' ' etiquetas Macro ' Selecciona los primeros 20 artculos en la Hoja "Table1" y los transfiere

a la H oja2 dejandolos listo para imprimir, si se desean diferentes artculos de diferent es marcas solo se copian a donde estan ubicados los primeros 20 artculos. ' ' Acceso directo: CTRL+m ' Sheets("Hoja1").Select Columns("C:C").Select Selection.Delete Shift:=xlToLeft Selection.ColumnWidth = 1 Sheets("Table1").Select Range("B2:C21").Select Selection.Copy Sheets("Hoja1").Select Range("A1:D10").Select ActiveSheet.Paste Range("A11:B20").Select Application.CutCopyMode = False Selection.Cut Range("C1").Select ActiveSheet.Paste Columns("A:A").Select Selection.ColumnWidth = 40 Columns("B:B").Select Selection.ColumnWidth = 9.29 Columns("C:C").Select Selection.ColumnWidth = 38 Columns("D:D").Select Selection.ColumnWidth = 9.29 Rows("1:10").Select Selection.RowHeight = 75 Range("A1:D10").Select With Selection .HorizontalAlignment = xlGeneral .VerticalAlignment = xlBottom .WrapText = True .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlCenter .WrapText = True .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With With Selection .HorizontalAlignment = xlLeft .VerticalAlignment = xlCenter

.WrapText = True .Orientation = 0 .AddIndent = False .IndentLevel = 0 .ShrinkToFit = False .ReadingOrder = xlContext .MergeCells = False End With With Selection.Font .Name = "Arial" .Size = 9 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 1 .TintAndShade = 0 .ThemeFont = xlThemeFontNone End With Range("A1:A10").Select With Selection.Font .Name = "Arial" .Size = 14 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 1 .TintAndShade = 0 .ThemeFont = xlThemeFontNone End With Range("C1:C10").Select With Selection.Font .Name = "Arial" .Size = 14 .Strikethrough = False .Superscript = False .Subscript = False .OutlineFont = False .Shadow = False .Underline = xlUnderlineStyleNone .ColorIndex = 1 .TintAndShade = 0 .ThemeFont = xlThemeFontNone End With Columns("C:C").Select Selection.Insert Shift:=xlToRight, CopyOrigin:=xlFormatFromLeftOrAbove Columns("C:C").Select Selection.ColumnWidth = 1 Sheets("Table1").Select Range("A2:C21").Select Selection.Delete Shift:=xlUp Sheets("Hoja1").Select End Sub

You might also like