Solved

.net VBA word safemode

Posted on 2016-11-09
1
56 Views
Last Modified: 2016-11-14
Hi,

I have a little app that launches word and reads from it, the problem is that when I use the following code it freezes my app until WORD is fully loaded, would there be a way to open the Word.Application in SAFE mode and read from it, it's just that in safe mode it opens up instantly.
Dim appWord As New Word.Application
appWord.Visible = False
Dim docWord As New Word.Document

Open in new window

0
Comment
Question by:FCapo
1 Comment
 
LVL 20

Accepted Solution

by:
darbid73 earned 500 total points
ID: 41881324
The way you stop your App from being blocked from long running methods is to use threads. However and this is important, VBA does not have threading and more importantly you should not use different threads with office.

Do you know why Word opens so slow? Have you disabled all addins to see if that helps? After opening word what do you do, do you open a specific document?
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question