LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unprotect and Protect Excel in LabVIEW 8.6.1

Solved!
Go to solution

I am trying to create an excel report after data acquisition in LabVIEW 8.6.1.

So that the operators cannot edit the template, I password-protected it.

Now

the I am searching online for forums on how to do so. However examples does not fit to the current version that we have since vis such as 'get report to modify' (I am not sure if its the right name) is already a feature removed

from this version.

I believe the basic issue is how to transform the 'report out' into an application 'refnum' so as the excel would be unlocked.

0 Kudos
Message 1 of 10
(4,813 Views)

Try it this way

 

excel.PNG

0 Kudos
Message 2 of 10
(4,806 Views)

Hi! Muks,

 

Thank you so much for the reply. What type of refnum are using. Is it an application refnum? Supposing that I opened the file using report generation (so that I will just append the data), how can I transform a 'report out' into a 'refnum'?

 

Regards,

Peter

 

0 Kudos
Message 3 of 10
(4,802 Views)
You can use the Workbook reference.
0 Kudos
Message 4 of 10
(4,794 Views)

Hi Muks,

 

Another question, sorry for this one. I am very new to LabVIEW. How can I generate workbook refnum? Is there a necessary thing to do beforehand. I tried application refnum and no workbook among the choices.

 

Regards,

Peter

0 Kudos
Message 5 of 10
(4,792 Views)

I got an error 97. What is happening?

0 Kudos
Message 6 of 10
(4,787 Views)
0 Kudos
Message 7 of 10
(4,773 Views)
0 Kudos
Message 8 of 10
(4,772 Views)
Solution
Accepted by pj.canoy

Hi Muks,

 

Thanks a lot for all the help.

 

I already figured out how. I just explored. I find this 'Get Excel ActiveX Reference.vi' and on its property node there was a unprotect option. Anyways, thanks a lot for answering.

 

I was waiting for the e-mail from NI and until now I didn't receive any comments.

 

Regards,

Peter

0 Kudos
Message 9 of 10
(4,769 Views)
But marking your post as solution doesnt sound that right isnt it?
0 Kudos
Message 10 of 10
(4,764 Views)