复制粘贴(VBA)

编程入门 行业动态 更新时间:2024-10-26 09:21:58
本文介绍了复制粘贴(VBA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨朋友们,

我们在WorkBook中有三张表。

现在我在SHEET1中选择要复制的数据。所以现在SHEET1在CopyMode中。现在选择SHEET3并保护SHEET3。

然后选择SHEET1并尝试粘贴数据。它不会粘贴数据。

因此当我执行Protect或Unprotect等操作时。它清除复制的数据。

所以我不明白这些是功能还是错误。并且你能告诉我怎么解决它?

谢谢

解决方案

这听起来像是一个愚蠢的答案,但为什么不在选择要从sheet1复制的内容之前取消保护sheet3。复制完成后再次保护sheet3。 (或者看看设置保护时设置的属性,调整它们,你可以粘贴而不做我的建议)

ChasAA

Hi Friends,

We have three sheets in WorkBook.

Now I selects Data to Copy in SHEET1. So Now SHEET1 is in CopyMode. Now Select SHEET3 and PROTECT the SHEET3.

and then Select SHEET1 and Try to Paste the data. it will not paste the data.

So when I do the Operation like Protect or Unprotect. It Clears the Copied data.

So I m not understanding these is Feature or Bug. and Can U tell me How can solve it???

 

Thanks

 

解决方案

This might sound like a silly answer, but why not unprotect sheet3 before selecting what to copy from sheet1.  After the copy is complete then protect sheet3 again.  (Or have a look at the attributes that are set when the protection was set, adjust them and you may be able to paste without doing what I suggested)

ChasAA

更多推荐

复制粘贴(VBA)

本文发布于:2023-11-25 01:24:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1627744.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:VBA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!