AN2004 EXCEL Example This application note describes how to control a Dimetix distance sensor connected to a serial interface by VBA (Visual Basic for Application). The VBA program is integrated into an EXCEL worksheet.