Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 365
  • Last Modified:

VB6 and MsWord - LockWindowUpdate

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
dwe0608
Asked:
dwe0608
1 Solution
 
WalkaboutTiggerCommented:
Have you tried either

Application.screenupdating=false

Or

Application.visible=false

?

Alternatively, have you tried

Documents.Open Filename:="whatever", Visible:=False
0
 
dwe0608Author Commented:
thanks for the help - I ended up hiding the application whilst it did its thing
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now