While on the schematic canvas, right-click on the module component and select Generate | Blackbox Module.
For more information on blackboxing, see Blackboxing Modules.