Already a member? This > macro basically takes a 3 page letter, for example and formats the > first page to print from our letterhead tray (tray 1) and all other > pages to If the OddAndEvenPagesHeaderFooter property is True, you can return an odd header or footer by using wdHeaderFooterPrimary, and you can return an even header or footer by using wdHeaderFooterEvenPages. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures. What is Send to Mail Recipient? Source
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.Just copy and paste the BBCode HTML Markdown MediaWiki reStructuredText code below into your site. VBA Visual Basic Follow-Ups: Re: PageSetup + Section Breaks = Value out of range Run-time Error 4608 From: Russ RE: PageSetup + Section Breaks = Value out of range Run-time Error 46 From: periodic JaredHess View Public Profile Find all posts by JaredHess #2 04-14-2008, 04:11 PM Heyjoe Centurion Join Date: Nov 2006 Location: USA Posts: 171 Just a couple of thoughts. Get 1:1 Help Now Advertise Here Enjoyed your answer?
It took .5 hours to format the two documents, two of the smallest, in the link above. It's certainly hard to grasp what exactly you want this code to do since there are no comments describing what your code does :). I have the document that failed and will provide it if needed.
Rich. . It would be better to start a new thread... -- Salut! _______________________________________ Jean-Guy Marcil - Word MVP TOO Word MVP site: http://www.word.mvps.org Jean-Guy Marcil, Nov 2, 2005 #3 Jean-Guy Marcil You would think that if the 'line-pitch' was visible in the XML then there would be some where in Word that you could set this value. Comment underneath if this suggestion does not fix your problem. .BookFoldPrinting = False .BookFoldRevPrinting = False .BookFoldPrintingSheets = 1 share|improve this answer answered Mar 26 at 18:42 Floam 116110
DiCanio via OfficeKB.com, Mar 8, 2005, in forum: Word VBA Replies: 9 Views: 459 Bodiller Jun 30, 2005 Run-time error '4608' , Mar 10, 2005, in forum: Word VBA Replies: 0 Join UsClose PageSetup + Section Breaks = Value out of range Run-time Error 4608 From: "Rich"
The larger ones have more than the smaller ones. http://www.xtremevbtalk.com/word-powerpoint-outlook-and-other-office-products/295397-run-time-error-4608-value-range-word-2003-a.html When I try to Debug it, it will continually error out on any of the lines under "With ActiveDocument.PageSetup". Microsoft Visual Basic Runtime Error 4608 On occasion on certain documents we get a runtime error of 4608 "Value out of range" and find that VB has stuck on ".FirstPageTray = wdPrinterAutomaticSheetFeed". Find all posts by Colin Legg
JaredHess View Public Profile Find all posts by JaredHess #7 04-17-2008, 09:18 AM Colin Legg Out Of Office Retired Moderator* Expert * Join Date: Mar 2005 Location: this contact form Just click the sign up button to choose a username and then you can ask your own questions on the forum. Join Us! *Tek-Tips's functionality depends on members receiving e-mail. JaredHess View Public Profile Find all posts by JaredHess #4 04-16-2008, 09:25 AM LadyAmazon Junior Contributor Join Date: Mar 2004 Location: New York Posts: 321 Hi, I am
Sign Up Now! Blaise This article describes how to use the Send to Mail Recipient command. First Name Please enter a first name Last Name Please enter a last name Email We will never share this with anyone. have a peek here This page has been accessed 2,934 times.
Close Reply To This Thread Posting in the Tek-Tips forums is a member-only feature. Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. Join Now For immediate help use Live now!
Many thanks, John Code: Sub ReportGenerate() ' Variable declarations Dim WordApp As Object Dim i As Integer Dim SaveAsName As String Dim TableCount As Integer TableCount = 0 Dim rng As email etiquette adding people to the thread vs reaching out directly Is there a name for the (anti- ) pattern of passing parameters that will only be used several levels deep Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework. You'll be able to ask questions about MS Office or chat with the community and help others.
im using word 2003 ActiveDocument.PageSetup.DifferentFirstPageHeaderFooter = True Set oRng = ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).Range oRng.ParagraphFormat.Alignment = wdAlignParagraphCenter NormalTemplate.AutoTextEntries("Page X of Y").Insert Where:=oRng, RichText:=True Casey Mac, Nov 1, 2005 #2 Advertisements Jean-Guy Marcil Guest Learn the most practical features and best approaches for ASP.NET. Here is the second version of the macro Function pagestuffB() As String ' ' Format for Publisher ' ' Dim rv As String rv = "" On Error GoTo ErrorHndlr: With Check This Out Our printer is an HP > Laserjet 4250. > > My problem is this.
strActivePrinter = Application.ActivePrinter 'Change the active printer to match local Aficio 2075-B ActivePrinter = "\\circe\Aficio 2075-B PCL6" For each sec in ActiveDocument.Sections The normal value for line-pitch seems to be 360 in the XML for (A4 Paper). Login. Below is the text of the macro Sub PlainPrint_B() ' ' PlainPrint-B Macro ' Prints to Aficio 2075-B, Plain paper ' ' Get active/default printer.
No, create an account now. Similar Threads run-time error '4608' value out of range grant thomas, Aug 15, 2003, in forum: Word VBA Replies: 0 Views: 760 grant thomas Aug 15, 2003 Run-time Error '4608' Value ActiveDocument.PageSetup.LinesPage = 38 'achieves the same as all the above but is a little bit easier. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More...
If so, please mark it as answered to close the question. Sometime's my letter has different margins, etc. > (I'm assuming this is the problem) and because of this I get a > Run-time error '4608: Value out of range error. What I found was that there is an attribute in each section which has the XML of