You all are brilliant for responding. Thank you for being so kind! I will try these fixes and get back to you. Thank you so much!!!
On Wed, Dec 8, 2021 at 4:32 PM Mark Hammond <skippy.hamm...@gmail.com> wrote: > Another possibility for the failure is the environment office is running > under (which broadly speaking can be described as the PATH). > > Back in the day, it was very common for Python and pywin32 to end up > sticking stuff in the system32 directory, then things like COM would > work in almost every context, as the system directory was (almost) > always on the path. > > However, these days that's far less likely to be true - so the problem > might be as simple as the fact that pythonXX.dll and pythoncomXX.dll > can't be located when office is running, although can be in your pycharm > environment. > > Ensuring the directory with these files is on the PATH for office is the > generic advice, but it's difficult to give more specific advice without > knowing more about your specific environment. > > Cheers, > > Mark > > On 8/12/2021 1:49 pm, Dan Moisan wrote: > > I apologize in advance for the basic question, but I have spent about 40 > > hours researching how to make the demo "outlookAddin.py" load on my > > Outlook 2016 32 bit application. I am running Python version 3.7 and I > > can successfully run the outlookAddin.py script from PyCharm. But then > > when I open outlook, I always receive the message "... not loaded. a > > runtime error occurred during the loading of the com add-in". > > > > I am sure that I missing a very basic step to make this run, but I can't > > seem to find anything online. Do I need to do something to compile the > > outlookAddin.py script before or after I run it? Or should the add-in > > load after it is registered? I'm so sorry for such a basic question. > > > > Thank you! > > > > Dan > > > > _______________________________________________ > > python-win32 mailing list > > python-win32@python.org > > https://mail.python.org/mailman/listinfo/python-win32 > >
_______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32