#ProgramaçãoGlobal #VBA #DOS #Office365 #Command
Outros Comandos MS DOS no VBA:
✏️ Renomear arquivos pode ser chato, mas este código VBA faz isso automaticamente usando o MS-DOS. Muito útil quando você precisa mudar o nome de relatórios ou documentos. 📃
Public Sub RenameFile()
Dim OldFileName As String
Dim NewFileName As String
OldFileName = "C:\Relatorios\old_report.txt"
NewFileName = "C:\Relatorios\new_report.txt"
Shell "cmd /c rename """ & OldFileName & """ """ & NewFileName & """"
MsgBox "Arquivo renomeado com sucesso! 📝"
End Sub
📣 Renomeie arquivos sem dor de cabeça!
Clique nas capas abaixo e compre também:
Clique aqui e nos contate via What's App para avaliarmos seus projetos
Comente e compartilhe este artigo!
brazilsalesforceeffectiveness@gmail.com


Nenhum comentário:
Postar um comentário