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
 Forum for Automation Server/COM and LabVIEW
 Inconsistent bug with selecting worksheet

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
ChemistryGuy Posted - 08/11/2020 : 09:18:27 AM
Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 2020b (64-bit)
Operating System: Windows 10

I recently upgraded from 2020 to 2020b. I tried to run one of my Excel Macros that automates Origin and Excel crashed.

After debugging I found that the line which crashed Excel was the second line below. These were the first lines in my macro that communicated with Origin.

Set wbk = app.WorksheetPages.Add
Set Wks = wbk.Layers(0)

I then added the following line of code, and this fixed the issue.

Set wbk = app.WorksheetPages.Add
LayerCount = wbk.Layers.Count
Set Wks = wbk.Layers(0)

I tried to make an example VBA project to illustrate this, however when I did this, there was no problem. This is why I describe the bug as inconsistent.

I just thought I should mention this here in case my workaround helps anyone, and also to let the developers know about the issue.

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