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
Forum for Python
access workbook or sheet by longname
New Topic
Reply to Topic
Printer Friendly
Author
Topic
raptor0815
2 Posts
Posted - 03/10/2024 : 1:28:15 PM
Origin Ver. and Service Release (Select Help-->About Origin): 10.1.0.178
Operating System: win 10 or 11
how to do this with python?
thank you
ChaoC
USA
174 Posts
Posted - 03/11/2024 : 09:24:19 AM
Hello raptor0815,
You can use find_sheet() and find_book()
https://docs.originlab.com/originpro/namespaceoriginpro_1_1project.html#a69364cc2d546246b7a50752a2b1c713a
https://docs.originlab.com/originpro/namespaceoriginpro_1_1project.html#a043e2627e8b3bf38a29dfebabb934d78
E.g.
wbk=op.find_book('w','["Long Name"]') //refer to Book by LN
wks=op.find_sheet('w','[Book1]"Long Name") //refer to Sheet by LN
wks=op.find_sheet('w','["Long Name"]"Long Name"')
Documentation on Origin range strings:
https://www.originlab.com/doc/en/LabTalk/guide/Range-Notation#Types_of_Range_Data
Best,
Chao
Topic
New Topic
Reply to Topic
Printer Friendly
Jump To:
Select Forum
Origin Forum
Origin Viewer Forum
Origin Forum
Origin Forum for Programming
Forum for Python
LabTalk Forum
Forum for Origin C
Forum for Automation Server/COM and LabVIEW
Origin中文论坛
Origin 中文论坛 (Chinese Origin Forum)
Japanese Origin Forum
Origin日本語フォーラム (Japanese Origin Forum)
Origin on Linux
The Origin on Linux Forum
Private Forums
Distributor Forum
--------------------
Home
Active Topics
Frequently Asked Questions
Member Information
Search Page
The Origin Forum
© 2020 Originlab Corporation
Snitz Forums 2000