is there any macro that can group entire objects on each page of a file in a single click

is there any macro that can group entire objects on each page of a file in a single click. then please help