I have an Access XP Database. On one of the forms I have a button that
opens and Excel Spreadsheet as follows:
Dim xl As Excel.Applicati on
Set xl = New Excel.Applicati on
xl.Application. Workbooks.Add
xl.Cells(1,1) = "Some Text From the database"
etc.
I have set a reference to the Excel 10 Object Library.
The problem I have is that I have to send this application to different
users in our company, and some have Excel 2000, in which case they get an
error re the Excel 10 Object Library. Is there a way that the code will
work regardless of what version of Excel is on the target pc.
Thanks
opens and Excel Spreadsheet as follows:
Dim xl As Excel.Applicati on
Set xl = New Excel.Applicati on
xl.Application. Workbooks.Add
xl.Cells(1,1) = "Some Text From the database"
etc.
I have set a reference to the Excel 10 Object Library.
The problem I have is that I have to send this application to different
users in our company, and some have Excel 2000, in which case they get an
error re the Excel 10 Object Library. Is there a way that the code will
work regardless of what version of Excel is on the target pc.
Thanks
Comment