Quote:
Originally Posted by swenniels
THis last part doesn´t work in WOrd 2016. Hwo do I know? FOr example I have 12 symptoms attached: with macro part 2 I get 5 of them, I then close the document, re open it and get the next symptom with Macro part 1, but then symptom number 6 comes up instead of number 1, because the variable "varMerk42" has not been put to 0
|
Your problem here has nothing to do with "varMerk42", since your 'Macro part 1' never interacts with that variable - all it ever looks at is "varMerk2" - and your Document_Close macro only ever interacts with "varMerk42".
PS: When posting code, please use the code tags, indicated by the # button on the posting menu. Without them, your code loses much of whatever structure it had. I've added the tags to the relevant posts in this thread.