General information
Category:
COM/DCOM and OLE Automation
Title:
Automatizacion con Excel
Amigos, tengo el siguientes problema.
He creado una funcion, que genera un libro de excel desde un cursor.
El problema es que quiero grabar ese libro con un nombre especifico y una ruta que se la pueda enviar como parametro a mi funcion.
La instruccion de grabacion que utilizo es la siguiente.
pnamesheet = 'consulta'
.ActiveWorkbook.SaveAs(pnamesheet)
donde pnamesheet es el nombre del libro excel, por ejemplo 'Consulta'
pero cuando le mando le cambio el valor a la variable incluyendo la ruta
donde deseo que se grabe me envia un error de Automatizacion
pnamesheet = 'c:\temp\consulta'
.ActiveWorkbook.SaveAs(pnamesheet)
Error : Código de Error OLE 0x80020006 : Nombre desconocido
Alguien tiene la solucion a este problema..
Muchas gracias por su colaboracion
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only