Hi,
I am trying to execute a VBA code which is as follows. the list of securities is not coming post the EikonRefreshWorksheet command - however, when i close and re-open my workbook (or file) - the formula automatically gets applied and the list of securities get populated. but, if i run it through a macro - the refresh doesn't happen, although the timestamp associated to the Rsearch function does get changed.
"
Set Crisil = ThisWorkbook.Worksheets("Issue Rating(Crisil)") -- Issue Rating(Crisil) is a worksheet in my active workbook
Crisil.Range("A6").Formula = "=RSearch(""BOND"",""RawContextFilter:'(DbType eq \'GOVT\' or DbType eq \'CORP\' or DbType eq \'AGNC\' or DbType eq \'OMUN\' or DbType eq \'OTHR\') and IsActive eq true' ParentOrgID:'""&$B$3&""'"",,""TRANSPOSE:YES"",D6)"
Application.Run "EikonRefreshWorksheet"
Any suggestions as to where i might be going wrong here?