Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Excel Worksheet Protection using Lotusscript
Feedback Type: Question
Product Area: Domino Server
Technical Area: Functionality
Platform: Windows
Release: 8.5.2
Reproducible: -Reproducibility-

Currently I have code that takes data/information and exports it to an excel spreadsheet. That all works fine. What I want to do now is add protection to the code so that the users are not able to change the data in the spreadsheet once it is created. I of course have to write the code in lotusscript. This is the code I have right now:

Const xlNoSelection = -4142

Set xlCell = xlSheet.Range ("A1:AN30")
xlCell.Select.Selection.Locked = True
xlCell.Select.Selection.FormulaHidden = True
xlCell.Protect.DrawingObjects = True
xlCell.Protect.Contents = True
xlCell.Protect.Scenarios = True
xlCell.EnableSelection = xlNoSelection

What am I doing wrong? What is the correct way to write this in lotusscript for it to work?

Thanks in advance.


Feedback number WEBB8FELQS created by ~Evelyn Fezboosichekobu on 03/29/2011

Status: Open
Comments:

Excel Worksheet Protection using Lo... (~Evelyn Fezboos... 29.Mar.11)
. . You have to protect the worksheet a... (~Tip Opjipymanl... 29.Mar.11)
. . . . Thanks for the response: That's Wha... (~Evelyn Fezboos... 30.Mar.11)
. . . . . . See syntax... (~Tip Opjipymanl... 12.Apr.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS