Change Block Name dynamically

I wanted to know if there is a way to dynamically change the name of a Block with say a macro (or otherwise), while the app is running?