I have an Add-In which includes a small dropdown for selecting a file to open. Mostly, the files' list is filled with Excel workbooks and also has a ppt file. Now, I want to add a OneNote notebook but I could not find a way to do it.
Since I found no info, I tried modifying the code I used for opening a PowerPoint presentation, but it did not work. If you guys could help me, me and my colleagues would appreciate it so much.
The first If statement works perfectly. The second one does not. OneNoteFile is declared as an Object in the Sub's header, and the issue I receive is in the line that actually opens OneNoteFile.
Thanks a lot!