The methods of mixed programming of Matlab and VB are introduced in this paper.As an example,The design method and approach in engineering application of indentation diameter measurement based on the COM technology are introduced in detail.The method based on the COM technology can greatly increase the efficiency of the development process,reduce programming difficulty and enhance the maintainability of the programmes.And this method can have many advantages which a single programming language does not.