RevitAPI.dll and RevitAPIUI.dll are required references for the interaction between the Macro Manager and the Revit macro IDE. If they are inadvertently removed from a module, the following procedure will restore them.
The references are restored and the macro will build, debug, and run as needed.