EXCEL AUTOMATION ERROR - almost there

Dim excel as ExcelApplication
Dim book as ExcelWorkbook
Dim sheet as ExcelWorksheet

These all give an error

I found a suggestion which worked for someone

ANSWER
move MSOfficeAutomation.rbx from the extras folder to the plugins folder

I found this MSOfficeAutomation.rbx from the extras folder

to the plugins folder

Where about’s in the plugins folder should I copy this to please ?

image

Hi George,

The file can be placed with those other plugins and it will work well.

Just remember to restart Xojo so that it will load the plug-in. :slight_smile:

I have used:

Dim excel As New ExcelApplication
excel.Visible = True
excel.Workbooks.Add 
excel.Cells(2,2).Value = "Test"
1 Like

I think I hadn’t restarted XOJO - Works perfectly now - Thank You