Boa tarde!!
Olá silva, tente substituir seu código que organiza a planilha.
Faça as adaptações e teste.
Sub Organ()
Application.ScreenUpdating = False
With Sheets("Rel. Original")
.Range("D1").Delete Shift:=xlUp
. Columns("C").Copy
.Columns("D").Insert Shift:=xlToRight
. Range("D1")= "Observação"
. Range("D2").Delete Shift:=xlUp
.Range("$A$1:$N$23").AutoFilter Field:=2, Criteria1:= _
"=Observações", Operator:=xlOr, Criteria2:="="
.Rows("3:1000").Delete
.Range("$A$1:$N$13").AutoFilter Field:=2
.Columns("J").TextToColumns Destination:=.Range("J1"), DataType:=xlDelimited, _ TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 3), TrailingMinusNumbers:=True
.Columns("L").TextToColumns Destination:=.Range("L1"), DataType:=xlDelimited, _ TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 3), TrailingMinusNumbers:=True
.Columns("M:M").Replace What:="00:00", Replacement:="24:00", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, _
SearchFormat:=False, _ ReplaceFormat:=False
End With
Application.ScreenUpdating = True
frmProgressBar.Show
End Sub
Existem mil maneiras de preparar Neston. Invente a sua!
http://www.youtube.com/ExpressoExcel
Postado : 11/06/2012 11:28 am