使用OOXML删除受保护的工作表中的一行 [英] Deleting a row in a protected work sheet using OOXML

查看:76
本文介绍了使用OOXML删除受保护的工作表中的一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI Friends,

我们可以在受保护的工作表中删除一行吗?

我将DeleteRows = false放在SheetProtection类属性中,然后可以通过右键单击excel行来找到删除行的选项.

不过,我还是无法删除.它显示了保护工作表的消息,因此请先取消保护工作表并删除该行.

HI Friends,

Can We delete a row in a protected work sheet?

I put DeleteRows = false in SheetProtection class attributes then I am able to find option for deleting the row by giving right click on excel row.

Still, I can''t able to delete. It is showing the message that the sheet is protected so first unprotect it and delete the row.

Please help me in this.

推荐答案

在您的保护方法中,放入AllowDeletingRows = true.
In your protect method put AllowDeletingRows = true.


这篇关于使用OOXML删除受保护的工作表中的一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆