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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Make new workbook // If exists then skip making it

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
LaurP Posted - 11/29/2012 : 11:23:49 AM
Origin Ver. 9.0 and Service Release (Select Help-->About Origin): ? OriginPro
Operating System: Win7

I have wasted half a day finding a way how to do it, but I am not closer to the cause.

I need script that makes new worksheet if the named worksheet doesn't already exist. If it exists then it skips making it.

Have tried very much different ways and nothing works. HELP.

2   L A T E S T    R E P L I E S    (Newest First)
LaurP Posted - 11/30/2012 : 06:36:48 AM
kkk...


I didn't use " ".

THANKS!
JacquelineHe Posted - 11/30/2012 : 02:56:01 AM
Hi,

Please refer to the following example for adding the sheet1 in the Book1 if there is not a "sheet1" in the Book1.


win -a Book1;  //Active a workbook with short name Book1
if(exist("[Book1]sheet1!")==0)
{
  newsheet name:=sheet1;
}



OriginLab
Jacqueline

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000