Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save OberdanBrito/94f62e2f68b4fa09c84a2b4d279ac553 to your computer and use it in GitHub Desktop.
Save OberdanBrito/94f62e2f68b4fa09c84a2b4d279ac553 to your computer and use it in GitHub Desktop.
Workbooks.Add
Set novoarquivo = ActiveWorkbook
Worksheets.Item(1).Name = "Planilha da fatura"
Worksheets.Item(1).Paste
Selection.PasteSpecial Paste:=xlPasteColumnWidths, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Range("A1").Activate
novoarquivo.SaveAs Filename:="C:\minhas_empresas\" & empresa & ".xls"
novoarquivo.Save
novoarquivo.Close
Debug.Print empresa & " Inicio:" & inicio & " Final:" & final
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment