• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 39
  • Last Modified:

Word VBA - output a popup with some text as a 'preview' window

Looking for ideas.

In my Word VBA application there's a Preview feature. What it does is simply copy a range > open a new Word doc > paste with formats. (the original doc in 500+ pages. This enables the user to review a selected part of it easily, without navigating away from the current insertion position).

The way I have done this has this drawback - the user 'thinks' the new Word doc is there for editing (because it can be). And now there are 2 Word docs open and this can be confusing.

What is required is (just) a 'preview'. One that is obviously a 'popup preview', non-editable, preferably at 50% zoom out (small), with existing formats.

I'd be grateful for any ideas.

Thanks
0
hindersaliva
Asked:
hindersaliva
  • 2
2 Solutions
 
Rgonzo1971Commented:
Hi,

pls try
ActiveDocument.Protect Password:="YourPW", NoReset:=True, Type:= _
    wdAllowOnlyReading, UseIRM:=False, EnforceStyleLock:=True
ActiveWindow.ActivePane.Zooms(wdPrintView) = 50 ' adapt view to the one you use

Open in new window

to make the Doc read-only

Regards
0
 
hindersalivaAuthor Commented:
Thanks Rgonzo. That works.

Is it also possible to 'minimise' the Word document to have 'minimal Ribbon tab' and other Word borders? Just on the ActiveDocument.

Thanks
0
 
Rgonzo1971Commented:
if it's in the same word session no
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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