02-15-2011 06:43 AM
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
02-15-2011 07:58 AM
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.
02-15-2011 08:17 AM - edited 02-15-2011 08:19 AM
Rajesh,
I've attached a VI snippet that demonstates ActiveX method to set protections and password.
02-15-2011 10:05 PM
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
11-22-2024 10:35 AM
11-22-2024 11:12 AM
Just a single worksheet in the workbook?