I have a big Excel add-in that I've made using VBA. It has lots of different subroutines and functions.
Part of it creates a set of charts, formats them and then positions them in a new worksheet so that they can be exported as a PDF.
When I run this subroutine, the charts do not position themselves correctly. But if I create a new macro exactly the same code in it that is used in the big Add-in, it works perfectly. So the code isn't working in the context of my add-in for some reason.
Has anyone got any ideas as to the kind of thing that could cause this problem, i.e. what I should look out for when debugging?
Thanks in advance.
Part of it creates a set of charts, formats them and then positions them in a new worksheet so that they can be exported as a PDF.
When I run this subroutine, the charts do not position themselves correctly. But if I create a new macro exactly the same code in it that is used in the big Add-in, it works perfectly. So the code isn't working in the context of my add-in for some reason.
Has anyone got any ideas as to the kind of thing that could cause this problem, i.e. what I should look out for when debugging?
Thanks in advance.