Solved

VB6 and MsWord - LockWindowUpdate

Posted on 2014-03-22
2
311 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

746 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

11 Experts available now in Live!

Get 1:1 Help Now