Help with API or Macro

Does anyone know of a macro that will rename planes (tospecified values) and set them to auto-size?

Would this be difficult to make? I have no developmental experiencewith macros/api's?

Thanks,SolidworksApi macros