Thanks Federico for screenshot. i moved code to Module1 and now getting below error. any further ideas? I made sure that macro settings are set to "enable all macros" and "trust VB project is selected" in excel settings. Same behaviour in Excel 2010 and 2013.
![macro error.png]()