LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel program error 97 HELP

Have you also reworked the previously called Excel VIs to match this pattern of opening/closing as well?

 

Have you also checked if "String 2" and "Select Range2" do have proper content? As already mentioned, i encountered the same error when "String 2" was empty....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 21 of 23
(1,558 Views)

Hi Alan4,

 

Can you post your updated code (With password) ?

I opened Excel sheet from Zip file, there are many sheets, graphs as well..Can you tell us what sheet no you are reading?

 

If searched on NI.com (Error:-2146827284) it is related to graph.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
Message 22 of 23
(1,549 Views)

Hi Alan4,

 

Two possibilities,

 

1)

12.JPG

 

 

2) may be  your data is not 2D...but here your Data to variant is trying to convert variant data to 2D. So error is coming.

 

11.JPG

 

I will explain how it is, if you are reading say A1:AU11, then it is 2D data. It will not give error. But if you are reading A1:A5 then it will give error as it is 1D data.

 

Did you get my point? That is why it gives error sometime not always. So your code was running fine say few days ago now it does not.

 

Your Vi in which you do some logic and come up with "Selected range" should be revised I guess. You need to work on it.

 

Also instead of reading excel many times, read it once it will give you less errors. You can read all sheet in one vi and have different array outputs contacting data corresponding to each sheet.

 

This will be simpler approach.

 

All the Best Smiley Happy

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 23 of 23
(1,542 Views)