Macro formatting