My apologies. I am using Before record action
event.
I just tested on:
Version: 7.2.5.2 (x64) / LibreOffice Community
Build ID: 499f9727c189e6ef3471021d6132d4c694f357e5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded
and both MsgBox and Print worked.
I agree, that in at least Win 10 this does not work for Before submitting
.