如题:
Range(Cells(1, 1), Cells(l + 2, j)).Locked = True
谢谢哈。
此示例对 Range(Cells(1, 1), Cells(l + 2, j)) 区域单元格的锁定,
以便当该工作表受保护时禁止对这些单元格进行修改。
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )
GMT+8, 2024-4-26 03:52 , Processed in 0.365909 second(s), 5 queries , Gzip On, Yac On.
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.