[英]Locked Excel Cells Becoming Unlocked When Re Opened
I have a Blueprism process which is locking a column and protecting the worksheet.我有一个 Blueprism 进程,它正在锁定列并保护工作表。 The cells are then locked.
然后单元格被锁定。 When the file is saved, closed and re opened the cells are no longer locked.
当文件被保存、关闭并重新打开时,单元格不再被锁定。
GetInstance(handle).Activecell.Locked = True
GetInstance(handle).ActiveSheet.Protect
Issue was I was using a CSV. Doesn't seem to work there but does in a standard Excel Workbook.问题是我使用的是 CSV。似乎在那里不起作用,但在标准 Excel 工作簿中起作用。
Most of these cases are related to excel Settings, not exactly the Blueprism.大多数这些案例都与 excel 设置有关,不完全是 Blueprism。 I would suggest trying with Options Menu in Excel workbook and Remove Recovery flags as well.
我建议尝试使用 Excel 工作簿中的选项菜单并删除恢复标志。
Control+A and format sheet to Text Type and Save Manually First(One Time activity). Control+A 并将工作表格式设置为文本类型并首先手动保存(一次性活动)。 Sometimes Formatting can be the root cause.
有时格式化可能是根本原因。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.