Solved

.net VBA word safemode

Posted on 2016-11-09
1
64 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

732 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