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,810 Views)

Try it this way

 

excel.PNG

0 Kudos
Message 2 of 10
(4,803 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,799 Views)
You can use the Workbook reference.
0 Kudos
Message 4 of 10
(4,791 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,789 Views)

I got an error 97. What is happening?

0 Kudos
Message 6 of 10
(4,784 Views)
0 Kudos
Message 7 of 10
(4,770 Views)
0 Kudos
Message 8 of 10
(4,769 Views)
Solution
Accepted by topic author 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,766 Views)
But marking your post as solution doesnt sound that right isnt it?
0 Kudos
Message 10 of 10
(4,761 Views)