This can also be done by using doMenu. The button id should stay constant even though we have not published them. Here is an example.
work -s 1 2 2 3;// select C1R2:C2R3
domenu hex(88e5);// merge cell button is 0x88E5
col(1)[2]$="junk";
wcellsel;// clear selection
Sam
OriginLab Technical Services