Link to home
Start Free TrialLog in
Avatar of donhannam
donhannamFlag for New Zealand

asked on

using CreateObject("Excel.Application") in Access 2010 run time - not working when Excel 2016 installed

Hi, I have Access 2010 adp application which uses late binding to create Excel spreadsheets which I have used as some clients have different versions of Excel. All been working fine for years.

I now have a client that has only office 365 - Excel 2016 on their PC - I am getting error "the format you are attempting to output the current object is not available" when creating Excel.

The have access 2010 runtime installed and possibly may have a 64 bit version of Office 365.

Does anyone have any ideas to get around this?.

Extract of code:-

Set xlObj = CreateObject("Excel.Application")
xlObj.Workbooks.Add
Set Sheet = xlObj.ActiveWorkbook.Sheets(1)
Sheet.Cells(1, 1).Value = "Heading"
Avatar of Norie
Norie

Where exactly does the code fail?
Avatar of donhannam

ASKER

I carn't recreate it on my PC as I have earlier version of Excel but suspect its happening on the create object.

Was hoping someone would know if this is a common issue with 2016.
ASKER CERTIFIED SOLUTION
Avatar of donhannam
donhannam
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial