Sandbox mode only prevents the blocked functions being called directly in
queries, it doesn't prevent them being called in VBA code. If you really
need to use one of the blocked functions, you can do so by writing a custom
VBA function that calls the blocked function, and calling the custom VBA
function from your query.