Error No -2147221504 is locked caused by vba project - V8

HI Team,

I am replacing the text using Excel Macro.  If i load the excel macro (mvba) on V8, its working fine.

if i execute it directly from Excel File(VBA) (note i have MicroStationDGN.OpenDesignFile myFileName) , Application is finding the matches, but its not replacing it. I am getting "Error No -2147221504 is locked caused by vba project"

Please advice.

Thanks!