Visual Basic - Excel

Life is soft - evento anual de software empresarial
 
Vista:

Excel

Publicado por Carlos (7 intervenciones) el 27/01/2005 22:31:50
Q' tal?
Como hago desde VB para que Excel abra (cargue) con un archivo que tengo en una carpeta ya definida?
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Excel

Publicado por Benjo (679 intervenciones) el 28/01/2005 00:44:37
Private Sub Command1_Click()
Dim xl As New Excel.Application
Dim xlw As Excel.Workbook
' Abrí el fichero Excel
' Sustituí "D:\Documents and Settings\All Users\Documentos\Material.xls" por tu fichero Excel
Set xlw = xl.Workbooks.Open("D:\Documents and Settings\All Users\Documentos\Material.xls")
xl.Visible = True
Stop
xlw.Close False
Set xlw = Nothing
Set xl = Nothing

End Sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar