How to modify Header from top and footer from button property

Under header and footer tab there is distance from header top and distance from button, how to update this distance?

@Mark030 You can use PageSetup.header_distance property and PageSetup.footer_distance property appropriately.