Thread: [Solved] Automating Word from vb.net
View Single Post
 
Old 08-31-2022, 08:25 AM
catflap's Avatar
catflap catflap is offline Windows 7 64bit Office 2013
Advanced Beginner
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default Automating Word from vb.net

Hi


I've coming up against this error message when I'm trying to add some text to bookmarks in a Word doc via automation in visual studio 2022:





I've had it working before and have the ActiveX and Macro settings to 'allow all' in Word, but for some reason it has stopped letting me open up a doc.


I can't add the file path to trusted locations as it won't let me for 'security' reasons - not that this should be needed as I've been able to do this process without making any changes until very recently.


Can anyone suggest a way to get past this please?


Thanks!
Reply With Quote