Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Option Explicit
WScript.Echo "Finished."
WScript.Quit
Prueba
Sub TestMacro()
'first set a string which contains the path to the file you want to
create.
'this example creates one and stores it in the root directory
MyFile = "C:\Users\username\Desktop\" & "TestResult.txt"
'set and open file for output
fnum = FreeFile()
Open MyFile For Output As fnum
'write project info and then a blank line. Note the comma is required
Write #fnum, "I wrote this"
Write #fnum,
'use Print when you want the string without quotation marks
Print #fnum, "I printed this"
Close #fnum
End Sub
Para leer del libro viejo Excel tendrá que abrirlo, otra cosa es que se le muestre el proceso
al usuario.
Prueba a crear un objeto workbook que se refiera al libro antiguo y con él das los pasos
necesarios para traer la información al libro nuevo
With LibroAntiguo
End With
End Sub