Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2022, 08:25 AM
catflap's Avatar
catflap catflap is offline Automating Word from vb.net Windows 7 64bit Automating Word from vb.net Office 2013
Advanced Beginner
Automating Word from vb.net
 
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
  #2  
Old 08-31-2022, 08:50 AM
catflap's Avatar
catflap catflap is offline Automating Word from vb.net Windows 7 64bit Automating Word from vb.net Office 2013
Advanced Beginner
Automating Word from vb.net
 
Join Date: Aug 2015
Location: UK
Posts: 77
catflap is on a distinguished road
Default

Hi


I finally found a solution to this, so I'm posting in case this helps someone.


All I had to do was clear the contents of this folder:


Quote:
C:\Users\(my username)\AppData\Local\Microsoft\Windows\INetcach e\Content.Word
No space in the 'INetcache' bit - for some reason one keeps pasting in.



Once that was done, no more security messages!
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I am automating word using vba. Need Help replacing paragraph with variable information Puneet Singh Word VBA 18 02-08-2022 10:48 PM
Automating Word from vb.net Need to put citations in, need help automating if possible AOEUD Word 2 11-06-2015 02:58 PM
Automating Word from vb.net Including of the word pages or tables on choice (Automating a quote) 00hepar00 Word 1 01-02-2014 09:27 PM
Automating Word from vb.net automating powerpoint trstbmbk PowerPoint 1 11-12-2013 02:09 AM
Automating Word from vb.net Automating dates OCM Outlook 4 04-03-2013 08:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:57 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft