I get Byref type error when calling several functions like GetPosition, Get...

I get Byref type error when calling several functions like GetPosition, Get... In VBA macro how to define System.Double types? Thanks