Microsoft Word Help

Ivan Howard

Active Member
Joined
Nov 10, 2004
Messages
333
Hi All,

I am looking for some help in Microsoft Word...

Using VBA, I need to stop all "Save" or "SaveAs" commands... and if possible - I need to stop all copy text commands.

I am unable to write/convert the file to PDF.

Any ideas?

Thanks very much.
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi All,

I am running a mail merge from an Excel based dataset. There are over 3000 documents (2 pages each) that are to be produced through the merge.

As per the previous post in this thread, I would like to stop people from editing the documents before printing. I have the code to stop saving, selecting all, copying and cutting, etc, but it only works when in the document that you put the code in.

My question is, that as the mail merge currently (and successfully) creates a NEW separate file (using code in the mail merge document) for each of the merged documents, is there a way to merge the data into a 'template' which already contains the saving/copying/cutting code?

I don't know too much about Normal.dot - would this be part of the answer?

Thanks for your help.
 
Upvote 0
Maybe create a single report .doc that contains the macros. Code to have the user view the contents of the original document in the report .doc (ie. copy the original contents to the report .doc). It depends on your needs, but a similair process has worked for me. HTH. Dave
 
Upvote 0
Hi All,

I am running a mail merge from an Excel based dataset. There are over 3000 documents (2 pages each) that are to be produced through the merge.

As per the previous post in this thread, I would like to stop people from editing the documents before printing. I have the code to stop saving, selecting all, copying and cutting, etc, but it only works when in the document that you put the code in.

My question is, that as the mail merge currently (and successfully) creates a NEW separate file (using code in the mail merge document) for each of the merged documents, is there a way to merge the data into a 'template' which already contains the saving/copying/cutting code?

I don't know too much about Normal.dot - would this be part of the answer?

Thanks for your help.
Hi Ivan,

You can obviate the need to itercept commands for saving etc, by using code like the following to intercept the mailmerge process itself:
Code:
Sub Mailmerge()
With ActiveDocument.Mailmerge
  .Destination = wdSendToPrinter
  .Execute
End With
End Sub
This sends the output direct to the printer, regardless of whether the user wants Word to save the output. Nothing is retained for the user to edit.
 
Upvote 0
Thanks very much Paul and Dave.

The report.doc idea sounds good, but as over 120 people will receive selected merged files, I am not sure if this would work.

I think the solution, albeit something amazing happening, will be producing protected documents in Word and issuing strict instructions that they cannot be changed/Saved As, etc... Oh for an ideal world!

Thanks again for your help.
 
Upvote 0

Forum statistics

Threads
1,225,533
Messages
6,185,499
Members
453,298
Latest member
Adam1258

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top