Is there a way to group all touching objects in CorelDraw 2018?

I have a bunch of clipart sets, and all the objects in them are separate. I'm wondering if there is a macro or method I could use to combine all the objects that are touching together to make them easier to work with.

I tried some code from here, but I'm not sure if it just doesn't work in 2018 or if it only works for overlapping shapes, rather than merely touching shapes that share a line. https://community.coreldraw.com/talk/coreldraw_x3_and_older/f/coreldraw-x3/21693/group-touching-objects