Trying to convert a piece of vb code to dotnet , basically copying and pasting some stuff in excel , i had recorded a macro and pasted that code on VB and it was working fine, now the same code am tweeking to make it work on dotnet, ON XL CONSTANTS GETTING ERROR.. NOT DEFINED.