In most cases, you can copy a class/job (cross)hotbar directly to "share" without trouble. If you want to copy from a DoH class to "share", please be careful.

I had a problem when using the following macro:
/crosshotbar share 1 on
/crosshotbar copy CUL 1 share 1
It copied a XHB, but sometimes copied actions could not be executed in current class. DoH classes have class specific actions with the same name. The macro did not always copy the correct actions.

The following version worked fine for me:
/crosshotbar share 1 on
/crosshotbar copy CUL 1 current 1
/crosshotbar copy current 1 share 1