Solved

.net VBA word safemode

Posted on 2016-11-09
1
44 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 19

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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