Replace revision with last 2 filename digits

Hi,
I'm trying to replace the revision letter "A" with the last 2 digits of my filename. Eventually I would save this as drawing sheet format template so it will automatically sync my future drawings.

Any help would be highly appreciated! 

SolidworksApi/macros