Hi Sandy,
Using properly configured document templates, it shouldn't be necessary to use a macro at all. But, since you do have a macro, perhaps it should interrogate one of Word's inbuilt document properties (eg the company name) to determine whether your print customisations should run or the document should be printed on plain paper.
-- Cheers macropod [MVP - Microsoft Word]
"SandyH" <SandyH[ at ]discussions.microsoft.com> wrote in message news:0196B1AD-B4E0-45EA-B580-F464C82D2C0A[ at ]microsoft.com...
[Quoted Text] >I wonder if someone could help me with a problem some of our users are > experiencing in Word? We have a macro that sits in Word which they can use > to print off documents. The macro selects the appropriate bins depending on > what they are printing out e.g. if its a letter, it will print the first page > on letterhead and the other pages on thick paper. The macro works > beautifully until they try and print a document that comes from outside the > office. When they hit the custom print a vba error appears saying value out > of range 4608. Everything I have read mentions section breaks and this is > what can cause the error. Some of the section breaks could be turned into > page breaks, however, other section breaks need to remain because of the way > the documents are put together. I have come across a solution which mentions > turning on the Document Grid but it appears to get this tab you need to > switch on Korean, Chinese or Japanese from the Language Settings and this > isn't something that we can do. Is there another way of bringing up this > tab? On my own pc which isn't within the citrix environment that the users > are in I activated this tab and ran the code that the author suggested of > Active.Document.PageSetup.LinesPage = 38 and after I had done that and then > ran the macro again the document printed out ok, but we can't switch on the > language settings the author suggests. Can anyone help?
|