You are on page 1of 1

Sub CopiaSomenteConteudo() Dim NewSheet As Worksheet, CurrentSheet As Worksheet 'pega a planilha atual Set CurrentSheet = ActiveSheet 'cria uma

nova planilha Set NewSheet = ThisWorkbook.Worksheets.Add NewSheet.Name = CurrentSheet.Name & "2" 'copia todas as clulas da planilha ativa CurrentSheet.Cells.Copy 'cola s os valores na nova planilha NewSheet.Range("A1").PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, S kipBlanks:=False, Transpose:=False 'zera os objetos Set NewSheet = Nothing Set CurrenSheet = Nothing End Sub

Sub passo_3() r = Cells(Rows.Count, W ).End(xlUp).Row For i = r To 4 Step -1 If Cells(i, 23).Value Then Sheets( combos ).Range( A1:z32?).Copy Cells(i + 1, 1).Select ActiveCell.Insert Shift:=xlDown Application.CutCopyMode = False End If Next i End Sub

You might also like