I dont think you can have more than a single line of code in a button
What might work is to make up two buttons on your screen, one with a G0 X0 Y0 and the other G0 Z0, You could then make the Go To Z button a VB button and add code for it to call your buttons in the order you want. I think that should be possible but maybe not, will have to try it out at some point but its getting late and my brains functioning at less than 10% capacity, and 10% of very little is almost zero
so it wont be tonight.
Hood