如何在Ms word 2016中运行MS Word 2010 vba代码? [英] How to run MS Word 2010 vba Code in Ms word 2016?

查看:285
本文介绍了如何在Ms word 2016中运行MS Word 2010 vba代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有用MS Word 2010编写的VBA代码,但我的代码不适用于MS word 2016.我选择了与MS word 2010相同的所有必要参考文献(库)。但是没有工作。



代码在Office Office 2010版本14.0.6023.1000(32位)上工作

代码不能用于Ms office 2016版本16.0.6326.1000(32位)





此代码用于检查文档中的相关单词并提供跟踪更改选项并添加一些注释。

I have VBA code which is written in MS word 2010 but my code is not working with MS word 2016. I have selected all necessary references(libraries) same as MS word 2010. but not working.

Code working on Ms office 2010 version 14.0.6023.1000(32-bit)
Code not working on Ms office 2016 version 16.0.6326.1000(32-bit)


this code use to check the relevant word in documents and give the option for track change and add some comments.

推荐答案

您唯一的选择是开始排除错误。您可能会发现单个错误导致代码无法运行,例如,如果2016年默认情况下更高的安全性已打开,则必须关闭。



但是,因为我们看不到你做过的任何事情而你没有分享错误信息,所以你需要自己做。
Your only option is to start troubleshooting the errors. You may find a single error is preventing the code from running, for example, if 2016 has newer higher security turned on by default that you have to turn off.

However, since we can't see anything you have done and you haven't shared the error message then you'll need to do this on your own.


这篇关于如何在Ms word 2016中运行MS Word 2010 vba代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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