VBA Compiler Problem

Hi,

I try to use VBA compiler but I couldn’t do it, it always return error
I use the code shown in your example.

If you want to access Excel objects, you must add Application. before.
In VBA: Range(“A1:A4”).Value = 2
In compiled VBA: Application.Range(“A1:A4”).Value = 2
See the explanation here:
https://www.xlspadlock.com/doc/accessing-excel-objects-from-com.html