S
Sebastian Cordoba
Hi guys.
I've a few questions about a macro I'm writing: my goal is to integrate
Project with Excel, generating tables and graphics in this last aplication by
using Project fields.
My questions are:
1- I'm generating a dynamic range using this code (First time I run the code
it works, but the second time it doesn't, I get an error)
Range(Worksheets(nombre).Cells(4, 2), Worksheets(nombre).Cells(4,
2).End(xlDown).Offset(0, 1)).Name = "Rango_Grafica"
What's wrong with it? Why does it work fine the first time but not the
second one?
2- My macro creates a new workbook, operates with it and then close it:
Dim xlarchivo As New Excel.Application
Dim xllibro As Excel.Workbook
Set xllibro= xlFichero.Workbooks.Add
..
..
..
xllibro.Close savechanges:=True
xlarchivo.Quit
Set xlarchivo = Nothing
Set xllibro = Nothing
The problem is: when I run the code for the second time I get the Error 462
"Remote server not available", What does it mean? isn't Excel completely
closed?
3- How do I identify the active Excel workbook? Has it something to do with
the instances of the application?
Thanks in advance.
I've a few questions about a macro I'm writing: my goal is to integrate
Project with Excel, generating tables and graphics in this last aplication by
using Project fields.
My questions are:
1- I'm generating a dynamic range using this code (First time I run the code
it works, but the second time it doesn't, I get an error)
Range(Worksheets(nombre).Cells(4, 2), Worksheets(nombre).Cells(4,
2).End(xlDown).Offset(0, 1)).Name = "Rango_Grafica"
What's wrong with it? Why does it work fine the first time but not the
second one?
2- My macro creates a new workbook, operates with it and then close it:
Dim xlarchivo As New Excel.Application
Dim xllibro As Excel.Workbook
Set xllibro= xlFichero.Workbooks.Add
..
..
..
xllibro.Close savechanges:=True
xlarchivo.Quit
Set xlarchivo = Nothing
Set xllibro = Nothing
The problem is: when I run the code for the second time I get the Error 462
"Remote server not available", What does it mean? isn't Excel completely
closed?
3- How do I identify the active Excel workbook? Has it something to do with
the instances of the application?
Thanks in advance.