Click here to Skip to main content
15,921,837 members
Please Sign up or sign in to vote.
1.50/5 (2 votes)
See more:
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.
Posted
Updated 16-Dec-15 22:16pm
v3
Comments
phil.o 17-Dec-15 2:29am    
Please press the "improve question" button and give us relevant informations about your code. Please also mention which processor architecture you have (32 or 64 bits), both for 2010 and 2016 versions. VBA 32 and 64 bits are not exactly the same, and there is no guarantee you can use a 32-bits VBA code in a 64-bits Office version.
phil.o 17-Dec-15 10:07am    
Please also define "not working". Any error message? Can you post the code of the method in which the problem occurs?
Member 12212771 18-Dec-15 1:22am    
I changed nothing in code. it is same as earlier.not getting any error.just i am not getting desire output for MS Word 2016 which i am getting in MS word 2010

1 solution

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.
 
Share this answer
 
Comments
Member 12212771 18-Dec-15 1:27am    
I changed nothing in code. it is same as earlier.not getting any error.just i am not getting desire output for MS Word 2016 which i am getting in MS word 2010
ZurdoDev 18-Dec-15 7:16am    
You are still being completely vague. You said it "is not working" and now you say you are "not getting desire output." That doesn't tell us anything. That's like calling a mechanic and saying my car is not working or it isn't working like I want it to. What would you expect a mechanic to do? Or, if you get the newer model of the same car and you call the dealer and say "it doesn't drive like my old one did."

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900