LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to password protect an excel sheet with labview?

Hi all

 

I want to protect my excel sheet by putting password. How can we do that in LabVIEW? In my application we are writing some data into an excel sheet. It should not be edited. Is there any other method to make this happen other than putting password?

 

I am a beginner. Please help me!

 

Regards

Rajesh

Rajesh Raghavan Nair

Certified LabVIEW Architect
Certified Teststand Architect
0 Kudos
Message 1 of 6
(5,866 Views)

You should be able to by using your tools>options>security settings to set the password.  To do this with LV would require you to use a macro or an activeX control.  I have found the macros are fairly easy to use and LV has some advanced file functions specifically for excel.  Look into the Excel Macros in the Report Generation Toolkit.  Specifically, Run Macro.vi.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 2 of 6
(5,855 Views)

Rajesh,

 

I've attached a VI snippet that demonstates ActiveX method to set protections and password.

 

Message 3 of 6
(5,841 Views)

Hi Mo Reese

 

Thank you for your valuable reply! I don't know much about macros. Anyway i will try to learn.

 

Hi Wayne

 

Thank you for the reply and VI snippet. I think your reply will help me a lot.

 

Thank you again for all

 

regards

Rajesh

Rajesh Raghavan Nair

Certified LabVIEW Architect
Certified Teststand Architect
0 Kudos
Message 4 of 6
(5,804 Views)

I tried with your solution with this:
michelesantucci_0-1732293315915.png

No errors.. but no password is set ...

0 Kudos
Message 5 of 6
(390 Views)

Just a single worksheet in the workbook?

0 Kudos
Message 6 of 6
(384 Views)