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

Dúvidas sobre cálculos, funções simples e aninhadas, fórmulas matriciais, etc.
Por andriessen
Posts
#55220
Bom dia! Estou tentando um botao dentro do USERFORM para salvar como
Deveria pegar a mesma pasta do arquivo original e salvar como HABILITADA PARA MACRO
estou tentando este codigo mas nao salva como xlsm.
Sub Salvar_Como()
Nome = InputBox("Informe o nome do arquivo que quer salvar!")
Formato = (".xlsm")
'ThisWorkbook.SaveAs = "ThisWorkbook.Path \ " & Nome & ".xlsm"""

OU isso
ActiveWorkbook.SaveAs ThisWorkbook.Path & "\" & Nome & Formato

End Sub

Agradeço se alguém me ajudar a descobrir o erro da minha linha.
Por babdallas
#55224
Veja se assim dá certo.
Código: Selecionar todos
ThisWorkbook.SaveAs = Filename:="ThisWorkbook.Path \ " & Nome & ".xlsm", FileFormat:=xlOpenXMLWorkbookMacroEnabled
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