Professional Documents
Culture Documents
====
Sub Ajustar_quadro()
Range("A6").Select
ActiveCell.FormulaR1C1 = "G"
Range("B6").Select
ActiveCell.FormulaR1C1 = "S"
Range("C6").Select
ActiveCell.FormulaR1C1 = "I"
Range("E6").Select
ActiveCell.FormulaR1C1 = "EMB"
Range("H6").Select
ActiveCell.FormulaR1C1 = "SOLIC"
Range("I6").Select
ActiveCell.FormulaR1C1 = "ATN"
Range("J6").Select
ActiveCell.FormulaR1C1 = "GON"
'---------------------
'AJUSTAR GON A ESQUERDA
Columns("J:J").Select
With Selection
.HorizontalAlignment = xlRight
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
'-------------------------------
Range("I7").Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlDown)).Select
ActiveWindow.SmallScroll Down:=-183
With Selection.Font
.Name = "Calibri"
.Size = 12
.Strikethrough = False
.Superscript = False
.Subscript = False
.OutlineFont = False
.Shadow = False
.Underline = xlUnderlineStyleNone
.ThemeColor = xlThemeColorLight1
.TintAndShade = 0
.ThemeFont = xlThemeFontMinor
End With
Selection.Font.Bold = True
End If
End Sub
'==================================================================================
==============
Sub Filtro()
If Range("A2").Text Like "LISTAGEM DAS SOLICITA��ES DE MERCADORIAS" Then
'----------------------------------------------------------------------------
' adiciona filto
' Range("I6").Select
' Selection.AutoFilter
'-----------------------------------------------------------------------------
'BOBINAS
Set Rng = Range("D7")
End If
'------------------------------------------------------------------------------
End If
End Sub
'==================================================================================
======================
Sub Apagar_Zero()
If Range("A2").Text Like "LISTAGEM DAS SOLICITA��ES DE MERCADORIAS" Then
Dim lLin As Long
Application.ScreenUpdating = False
'==================================================================================
====
' deletar os grupos que nao temos mercadorias
If .Cells(lLin, "A") = "300" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "301" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "302" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "303" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "304" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "305" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "306" Then .Rows(lLin).Delete 'Deletar
If .Cells(lLin, "A") = "501" Then .Rows(lLin).Delete 'Deletar
'==================================================================================
===
Application.ScreenUpdating = False
End If
End Sub
'==================================================================================
=================================
Sub removZero()
If Range("A2").Text Like "LISTAGEM DAS SOLICITA��ES DE MERCADORIAS" Then
Dim lLin As Long
Application.ScreenUpdating = False
End Sub