This line "varOut = sample.RecognizeFeatureAutomatic(option )" doesnt work. VBA is giving me "Run-time error '91': Object variable or With block variable not set". This error is usually related to usage of Set in assigning the value. In the sample varOut is defined as a variant. Ive changed some different permutations, using set/changing varOut to long/etc. Nothing seems to work. Wondering if anyone has gotten this to work.