摘要: 在上一篇中已经实现了在VSTO中调用VBA工程中的过程来实现撤销功能,OnUnDO函数必须是调用VBA中的过程名,如果每一个撤销的过程都需要放入到VBA中去实现,不仅繁琐,还失去了VSTO开发插件的意义。其实可以通过VSTO调用一个固定的VBA,再通过VBA来调用VSTO内撤销过程的方法来实现,核心 阅读全文
posted @ 2022-10-01 17:46 iCells 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 在VBA环境下,运行VBA代码后,Excel的撤销按钮是灰色的,这意味着VBA代码导致工作表、工作簿的改变是无法撤销的,其实VBA内置了一个Application.OnUndo 方法 ,能够在运行代码后实现撤销功能,但是具体的撤销过程需要自行实现。OnUndo(Text,Procedure) 方法有 阅读全文
posted @ 2022-10-01 17:45 iCells 阅读(894) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:38 iCells 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:38 iCells 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:38 iCells 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:38 iCells 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:38 iCells 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:37 iCells 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:37 iCells 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:37 iCells 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-10-01 14:36 iCells 阅读(711) 评论(0) 推荐(0) 编辑