Macro
Macro
Columns("I:I").Select
Selection.Cut
Columns("G:G").Select
Selection.Insert Shift:=xlToRight
Columns("J:J").Select
Selection.Cut
Columns("H:H").Select
Selection.Insert Shift:=xlToRight
Columns("K:K").Select
Selection.Cut
Columns("J:J").Select
Selection.Insert Shift:=xlToRight
Range("A1").Select
ActiveCell.FormulaR1C1 = "PROYECTO"
Range("B1").Select
ActiveCell.FormulaR1C1 = "SOT"
Range("C1").Select
ActiveCell.FormulaR1C1 = "CID"
Range("D1").Select
ActiveCell.FormulaR1C1 = "CLIENTE"
Range("E1").Select
ActiveCell.FormulaR1C1 = "DESCRIPCION"
Range("F1").Select
ActiveCell.FormulaR1C1 = "SERVICIO"
Range("G1").Select
ActiveCell.FormulaR1C1 = "PRODUCTO"
Range("H1").Select
ActiveCell.FormulaR1C1 = "DESCRIPCION"
Range("I1").Select
ActiveCell.FormulaR1C1 = "RESPONSABILIDAD"
Range("J1").Select
ActiveCell.FormulaR1C1 = "CONTRATA"
Range("K1").Select
ActiveCell.FormulaR1C1 = "OBSERVACIONES"
Range("L1").Select
ActiveCell.FormulaR1C1 = "STATUS CNS"
'UltimaFila = Range("B1").End(xlDown).Row
'Cells(UltimaFila, 1).Select
'ActiveCell.Value = "Hola"
If WorksheetFunction.CountA(Cells) > 0 Then
'Search for any entry, by searching backwards by Rows.
LastRow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, Sear
chDirection:=xlPrevious).Row
'MsgBox LastRow
End If
' ---------------+++++++++++++++++++++++++++++++---------
' Arreglo de cuadriculado
' ---------------+++++++++++++++++++++++++++++++---------
' Arreglo de marcacion resaltada total
ActiveSheet.Range("A1", "L" & LastRow).Select
' Selection.Borders(xlDiagonalDown).LineStyle = xlNone
' Selection.Borders(xlDiagonalUp).LineStyle = xlNone
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
' ---------------+++++++++++++++++++++++++++++++---------
' Arreglo de marcacion resaltada titulo
ActiveSheet.Range("A1", "L1").Select
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlMedium
End With
' Selection.Borders(xlInsideVertical).LineStyle = xlNone
' Selection.Borders(xlInsideHorizontal).LineStyle = xlNone
Range("A1:L1").Select
Selection.Font.Bold = True
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 65535
.TintAndShade = 0
.PatternTintAndShade = 0
End With
' ActiveWindow.SmallScroll Down:=9
Columns("A:A").ColumnWidth = 10
Columns("B:B").ColumnWidth = 10
Columns("C:C").ColumnWidth = 10
Columns("D:D").ColumnWidth = 35
Columns("E:E").ColumnWidth = 35
Columns("F:F").ColumnWidth = 35
Columns("G:G").ColumnWidth = 30
Columns("H:H").ColumnWidth = 25
Columns("I:I").ColumnWidth = 15
Columns("J:J").ColumnWidth = 15
Columns("K:K").ColumnWidth = 15
Columns("L:L").ColumnWidth = 20
' Cells(UltimaFila, 1).Select
' ---------------+++++++++++++++++++++++++++++++---------
' Arreglo de marcacion resaltada titulo
ActiveSheet.Range("D" & LastRow + 6).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 13421619
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.Value = "Sin diseño / Sin IP"
ActiveSheet.Range("D" & LastRow + 7).Select
With Selection.Interior
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
.Color = 16737996
.TintAndShade = 0
.PatternTintAndShade = 0
End With
ActiveCell.Value = "Cancelado / Reprogramado"
End Sub