Solved

VB6 and MsWord - LockWindowUpdate

Posted on 2014-03-22
2
316 Views
Last Modified: 2014-03-26
HI Guys,

Using vb6 and MSWord 2007

I have a word document which is automated by a vb6 program written by me - there is a series of functions run where certain bookmarks are replaced by text, a table inserted and a few other things ... the document flickers a lot and it looks ugly.

Is there a way I can lock the window from showing updates until the code has finished running ... I know I can hide the window and then show it when its done processing ... but my preference is to lock the window from showing any updating ...

Code examples greatly appreciated ...

MTIA

DWE
0
Comment
Question by:dwe0608
2 Comments
 
LVL 15

Accepted Solution

by:
WalkaboutTigger earned 500 total points
ID: 39948341
Have you tried either

Application.screenupdating=false

Or

Application.visible=false

?

Alternatively, have you tried

Documents.Open Filename:="whatever", Visible:=False
0
 
LVL 1

Author Closing Comment

by:dwe0608
ID: 39956664
thanks for the help - I ended up hiding the application whilst it did its thing
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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