This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Public Sub SheetsToJSON() | |
| Dim fso As Object | |
| Set fso = CreateObject("Scripting.FileSystemObject") | |
| jsonFilename = fso.GetBaseName(ActiveWorkbook.Name) & ".json" 'Aqui será salvo o nome do arquivo JSON baseado na sua tabela ativa do Excel' | |
| fullFilePath = Application.ActiveWorkbook.Path & "\" & jsonFilename 'Aqui definirá o caminho que será salvo o arquivo JSON gerado' | |
| Dim fileStream As Object | |
| Set fileStream = CreateObject("ADODB.Stream") | |
| fileStream.Type = 2 | |
| fileStream.Charset = "utf-8" 'Define o formato do charset que será exportado o arquivo' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Create a file, copy and save the next line in format .bat. | |
| copy *.csv ArquivoConsolidado.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Drive2Sheet() { | |
| // variável que contém o nome de sua pasta de arquivos, | |
| // TROQUE O CONTEÚDO presente nas aspas simples para o nome da pasta que você deseja listar o conteúdo. | |
| var foldername = 'Certificados de Cursos'; | |
| // variável que irá nomear o arquivo do google sheets | |
| var folderlist = 'Lista de arquivos do ' + foldername; | |
| // Variável que irá acessar sua pasta | |
| var folders = DriveApp.getFoldersByName(foldername); |