Excel ActiveSheet.Protect 的属性
来源:互联网 发布:cat linux 大文件 编辑:程序博客网 时间:2024/05/16 08:13
Excel ActiveSheet.Protect
DrawingObjects:=False, 能编辑对象
Contents:=True, 内容
Scenarios:=False, 能编辑方案
AllowFormattingCells:=True, 格式化单元格
AllowFormattingColumns:=True, 格式化列
AllowFormattingRows:=True, 格式化行
AllowInsertingColumns:=True, 插入列
AllowInsertingRows:=True, 插入行
AllowInsertingHyperlinks:=True, 插入超链接
AllowDeletingColumns:=True, 删除列
AllowDeletingRows:=True, 删除行
AllowSorting:=True, 排序
AllowFiltering:=True, 筛选
AllowUsingPivotTables:=True 透视表
password:="123" 设置密码
另:
ActiveSheet.EnableSelection = xlUnlockedCells 只选未锁定单元格
ActiveSheet.EnableSelection = xlNoSelection 只选锁定单元格
EnableSelection Remarks
This property takes effect only when the worksheet is protected:
xlNoSelection prevents any selection on the sheet,
xlUnlockedCells allows only those cells whose Locked property is False to be selected,
and xlNoRestrictions allows any cell to be selected.
Example
This example sets worksheet one so that nothing on it can be selected.
With Worksheets(1) .EnableSelection = xlNoSelection .Protect Contents:=True, UserInterfaceOnly:=TrueEnd With
- Excel ActiveSheet.Protect 的属性
- php的访问属性:public;protect;private
- Spreadsheet控件属性activesheet为空或不为对象
- C# 通过VSTO操作Excel的Protect方法
- Protect/Lock Excel VBA Code
- vcs的加密protect
- protect的认识
- protect
- Qt 中信号和槽的 C++(public protect private) 的属性
- 修改protect属性, 可能会触发rowfocuschanged事件
- java中protect属性用法总结
- Qcom spk protect 的流程
- public/private/protect/ 的区别
- Excel控件的相关属性
- public,private,protect的访问机制
- public,private,protect的访问机制
- public、default、private、protect的访问机制
- 记录》》public,private,protect的访问机制
- 如虎添翼:Console Matlab Vim完美结合[Vim视角]
- 发帖网址2
- 字符和字符串(字符数组)处理
- STL之迭代器基本概念 [转贴]
- C#的一些术语
- Excel ActiveSheet.Protect 的属性
- C#的Form通过CLI调用C++的DLL
- CAsyncSocket,CSocket的使用方法
- 追求人格完善和对山水审美意境的发掘
- ROR汇集---will_paginate
- 没有芥菜子交给佛陀
- ROR汇集---Httparty
- 面试题 10套
- 一个简单的生成包和发包的程序