Solved

.net VBA word safemode

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is an Add-On procedure to be used in conjunction with the code provided in Reducing EE Email Clutter using Outlook (http://www.experts-exchange.com/Software/Office_Productivity/Groupware/Outlook/A_3146-Outlook-Processing-EE-emails-on-Receive.…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now