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
| agate==1.6.3 | |
| asn1crypto==1.4.0 | |
| attrs==21.4.0 | |
| Babel==2.9.1 | |
| certifi==2021.10.8 | |
| cffi==1.15.0 | |
| charset-normalizer==2.0.12 | |
| click==8.0.3 | |
| colorama==0.4.4 | |
| cryptography==3.4.8 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Option Explicit | |
| Sub ejecutarMacroDeOtroArchivo() | |
| Dim nombreDelArchivoConMacros As String | |
| Dim archivoConMacros As Workbook | |
| 'Localizar archivo en el sistema de archivos | |
| nombreDelArchivoConMacros = Application.GetOpenFilename("Excel Files (*.xlsm), *.xlsm") | |
| 'Abrir archivo |
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
| 'Víctor Urbina | |
| 'Octubre 2020 | |
| 'http://fditf.com | |
| Option Explicit | |
| Sub run_csv_reader() | |
| 'Open file | |
| OpenCSVFileAndGetContent ("fileName.csv") | |
| End Sub |
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
| Sub ejemploDeMacroConPassword() | |
| password = InputBox("Escribe tu clave", "Clave requerida.", " ") | |
| Select Case password | |
| Case Is = "hola" | |
| Range("A3").Select | |
| 'Poner un mensaje en la celda A3 | |
| ActiveCell.Value = "La macro se ejecutó correctamente." | |
| 'Aquí van el resto de las acciones de la macro | |
| ' | |
| ' |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 crearNuevaHoja() { | |
| var tituloNuevaHoja = SpreadsheetApp.getActiveSpreadsheet().getRangeByName('B2').getValue() | |
| nuevaHoja = SpreadsheetApp.create(tituloNuevaHoja) | |
| idNuevaHoja = nuevaHoja.getId() | |
| Logger.log(idNuevaHoja) | |
| SpreadsheetApp.getActiveSpreadsheet().getRange('B3').setValue("https://docs.google.com/spreadsheets/d/"+idNuevaHoja) | |
| } |
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
| // http://fditf.com/ | |
| // Enero 2020 | |
| function onOpen(e) { | |
| mostrarMensajeDeEspera("Esta es la ventana inferior!", 5); | |
| } | |
| function mostrarMensajeDeEspera(contenidoDelMensaje,tiempoEnSegundos){ | |
| if (contenidoDelMensaje == "Done!") {Utilities.sleep(4000)}; | |
| SpreadsheetApp.getActiveSpreadsheet().toast(contenidoDelMensaje,"",tiempoEnSegundos) |
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
| # This Python file uses the following encoding: utf-8 | |
| import sys | |
| import os | |
| import xlwings as xw | |
| def main(): | |
| xw.sheets('Hoja1').activate() | |
| xw.Range('A1').value = u'Hola! Ya estás usando Python!' | |
| xw.Range('A2').value = u'El directorio de trabajo actual es:' | |
| xw.Range('A3').value = os.getcwd() |
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 mostrarHojas() { | |
| var spreadsheet = SpreadsheetApp.getActive(); | |
| spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Menú'), true); | |
| spreadsheet.getRange('A1').activate(); | |
| spreadsheet.getSheetByName('Hoja1').showSheet() | |
| .activate(); | |
| spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Hoja1'), true); | |
| spreadsheet.getSheetByName('Hoja2').showSheet() | |
| .activate(); | |
| spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Hoja2'), true); |
NewerOlder