I have a macro that uses the code below to insert a annotation favorite. Before inserting though, I woudl like to delete the favorite if it exist in the drawing. I found the Method to do this but I am not sure how to call it correctly.
Code to insert the annotation favorite:
Set myAnnotation = swDrawing.Extension
Set myAnnotation = swDrawing.Extension.InsertAnnotationFavorite(FavoriteNameHere)
The method to delete the style
2015 SOLIDWORKS API Help - DeleteStyle Method (IAnnotation)
SolidworksApi macros