B
Bill Reed via AccessMonster.com
I am the beneficiary of some wonderful code for transferring an access
recordset to an excel workbook from the great Dev Ashish, but it is one
line short of perfection. Here's the code:
Dim objWkb As Workbook
Dim objSht As Worksheet
Set objXL = New Excel.Application
With objXL
.Visible = True
Set objWkb = .Workbooks.Add
End With
When I tried to set objWkb.Name to a more descriptive name than "Book1", I
got a msg saying the property is read-only.
How do I change the name of the workbook?
Thanks,
Bill
recordset to an excel workbook from the great Dev Ashish, but it is one
line short of perfection. Here's the code:
Dim objWkb As Workbook
Dim objSht As Worksheet
Set objXL = New Excel.Application
With objXL
.Visible = True
Set objWkb = .Workbooks.Add
End With
When I tried to set objWkb.Name to a more descriptive name than "Book1", I
got a msg saying the property is read-only.
How do I change the name of the workbook?
Thanks,
Bill