The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Merging Cells
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Drbobshepherd

USA
Posts

Posted - 03/07/2012 :  3:26:34 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.6.0
Operating System: Windows XP

How can I merge cells using LabTalk script?

DrBobShepherd

couturier

France
291 Posts

Posted - 03/08/2012 :  09:20:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can try the following:

work -s c1 r1 c2 r2; // replace c1 and c2 with col indexes, r1 and r2 with row indexes
menu -e 35045;

PS: if you want to run a given menu or button that is not available with Labtalk, execute it with mouse when holding shift and ctrl keys pressed. The menu id will print in script window, like:
Menu id=35045

You can then run it with script with menu -e id command
Go to Top of Page

Drbobshepherd

USA
Posts

Posted - 03/08/2012 :  10:35:47 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks, it works perfectly.

And thanks for the tip on how to find the Menu ID for a button or menu item. I figured out that when you said Script Window, you really did mean the Script Window, and not the Command Window, which has essentially replaced the Script Window in the latest releases. I had not used the Script Window for so long that I had forgotten how to open it; but, I eventually figured it out (select "Windows/Script Window" pull down menu). Again, thanks for the great tip. I think I will be making good use of it.

DrBobShepherd
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000