Este fórum está sendo desativado

Depois de 9 anos, este fórum será desativado. Mas calma.... estamos migrando para uma comunidade no DISCORD. Junte-se a nós.

ENTRAR PARA DISCORD

Tópicos relacionados a códigos VBA, gravação de macros, etc.
  • Avatar do usuário
#66772
Estou tentando imprimir várias abas de uma planilha em um único arquivo pdf.

Mas das 13 abas que existem na planilha, estão resultando em cinco arquivos diferentes.

Agradeço a quem puder contribuir!

Segue o código vba abaixo:
Código: Selecionar todos
Sub ImprimirTUDO()

'Imprimir Tudo

    Sheets(Array("1-CAPA", "2-CNPJ", "3-CONSTITUTIVO", "4-FATURAMENTO", _
        "5-FORMULARIOS", "6-PESQUISAS", "7-SOCIOS", "8-ANALISES", "9-CONFERENCIA", _
        "10-COMPLEMENTARES", "11-ANEXOS", "12-DOCUMENTOS", "13-CONSELHO")).Select
    ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True, _
        IgnorePrintAreas:=False
    ActiveWindow.ScrollWorkbookTabs Sheets:=-1
    Sheets("ENTRADA").Select
    ActiveWorkbook.Save
End Sub
Editado pela última vez por eduardobatistaadm em 05 Set 2021 às 14:43, em um total de 1 vez.
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]

Estamos migrando para uma comunidade no Discord