I'm creating classs library by using C# that will be used from VBA. But one thing discurages me - when I delete or change some letters in a method name and try to compile vba project then I get no errors. But I want to get compile error message if As I found out it happens because of using late binding.
I'll try to explain.
It is correct signature:
Sub Test() Dim cls as New SomeClass cls.SomeMethod End SubIt is signature with misspelling:
Sub Test() Dim cls as New SomeClass cls.**SomeMetod** End SubPress Compile VBA Project - everything is ok, but it shouldn't be.
I've changed base interface as shown below:
[Guid("Some GUID here"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IComInterface
{}
and base class:
[ClassInterface(ClassInterfaceType.None)]
public class BaseClass
But nothing happens!!! I only get errors at runtime.