Home > Runtime Error > Visual Basic Runtime Error 4608

Visual Basic Runtime Error 4608

Contents

This still didn't help me write a macro that worked. 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 Training topics range from Android App Dev to the Xen Virtualization Platform. It's certainly hard to grasp what exactly you want this code to do since there are no comments describing what your code does :). this contact form

GET STARTED Join & Write a Comment Already a member? The Function so I could use Interop and execute it from a VS app. –dbasnett Mar 21 at 23:55 Do the documents that fail have multiple sections? –Comintern Mar I was just about to ask for some help to achieve this in a macro when it struck me I can record a macro. For example integers cannot exceed 32767. http://www.office-forums.com/threads/run-time-error-4608-value-out-of-range-error.1873247/

Microsoft Visual Basic Runtime Error 4608

Close Box Join Tek-Tips Today! I have found theses on a similar subject to my own, and want to use their references with my own text and a similar flow. Thanks, Hypercat 0 LVL 76 Overall: Level 76 MS Word 65 Message Active today Expert Comment by:GrahamSkan2006-08-31 There is something of a problem in choosing the tray number.

  1. 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
  2. This still didn't help me write a macro > that worked. > > Thanks anyway. > > "Jean-Guy Marcil" wrote: > >> LDMueller was telling us: >> LDMueller nous racontait que
  3. Your name or email address: Do you already have an account?
  4. Thanks! –Floam Mar 27 at 16:46 when I go back to work I will. –dbasnett Mar 27 at 20:22 @dbasnett are you all set? –Floam Apr 3
  5. By joining you are opting in to receive e-mail.
  6. Forum New Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders What's New?
  7. Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More...
  8. RE: Run-time Error 4608 - value out of range Word XP RobBroekhuis (TechnicalUser) 24 Nov 03 10:53 Maybe the active printer is a different one now?If you go into debug mode
  9. About Us We're a friendly discussion community for Microsoft Office help and support.
  10. Basically the code sits in an Excel workbook which generates a report in Word, using Word VBA of course, populating it with the contents of a worksheet which was itself populated

Click Here to join Tek-Tips and talk with other members! Regards, Matthew Linnett 0 LVL 76 Overall: Level 76 MS Word 65 Message Active today Expert Comment by:GrahamSkan2012-10-15 Thanks. But testing another similar document the macro worked even with a "section break next page" in place?? Rob Red Flag This Post Please let us know here why this post is inappropriate.

Close this window and log in. Runtime Error 4608 When Printing Here's Why Members Love Tek-Tips Forums: Talk To Other Members Notification Of Responses To Questions Favorite Forums One Click Access Keyword Search Of All Posts, And More... And more importantly, how to fix it? more info here Powered by vBulletin Version 3.8.9Copyright ©2000 - 2016, vBulletin Solutions, Inc. --> current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log

Now, with a new document, when I run the script, it gives me this error: Run-time error '4608': Value out of range This occurs when the code executes the DifferentFirstPageHeaderFooter property Is there a way to load the ShowConfig before Sitecore finishes initializing? There is also a simpler way I have found to correct the documents but I don't know if the method will have any side effects. Browse other questions tagged vb.net vba ms-word macros or ask your own question.

Runtime Error 4608 When Printing

Function pagestuffB() As String ' ' Format for Publisher ' ' Dim rv As String rv = "" On Error GoTo ErrorHndlr: With Application .Options.Pagination = False .ScreenUpdating = False .WindowState http://www.xtremevbtalk.com/word-powerpoint-outlook-and-other-office-products/295397-run-time-error-4608-value-range-word-2003-a.html Send… MS Office Outlook MS Word Office / Productivity Creating an MLA Formatted Paper with Citations and a Bibliography Video by: Tony This video walks the viewer through the process of Microsoft Visual Basic Runtime Error 4608 Resources Join | Indeed Jobs | Advertise Copyright © 1998-2016 ENGINEERING.com, Inc. Login.

Coding Standard - haphazard application Achieve same random number sequence on different OS with same seed How can tilting a N64 cartridge causes such subtle glitches? weblink subscribe Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview! Connect with top rated Experts 12 Experts available now in Live! 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

Our printer is an HP > Laserjet 4250. > > My problem is this. With ActiveDocument .PageSetup.DifferentFirstPageHeaderFooter = True .Sections(1).Footers(wdHeaderFooterFirstPage) _ .Range.InsertBefore _ "Written by Kate Edson" End With Use the OddAndEvenPagesHeaderFooter property with the PageSetup object to specify different odd and even page headers It takes just 2 minutes to sign up (and it's free!). navigate here I would sincerely appreciate some assistance since I really need to automate the page setups for documents.

That's why the site is here. I also thank you Graham for your solution - no other site in my Google search had anything close to this. 0 Featured Post Courses: Start Training Online With Pros, Today This problem recently came up in a document and in my testing I removed the one an only "section break next page" and the macro worked.

What is causing this runtime error.

Perhaps I'm not understanding your problem - disregard if it's irrelevant. Join and Comment By clicking you are agreeing to Experts Exchange's Terms of Use. 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 The following example adds page numbers to the first page footer in the first section in the active document.

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? Why does Wolfram Alpha say the roots of a cubic involve square roots of negative numbers, when all three roots are real? Join & Ask a Question Need Help in Real-Time? his comment is here Join our community for more solutions or to ask questions.

Hopefully there have been others in the last six years who found the answer useful. 0 LVL 7 Overall: Level 7 Message Active today Expert Comment by:Reece Dodds2016-06-23 4 years The problem occurs when using a VBA macro to set certain Page Setup Properties such as ActiveDocument.PageSetup.FirstPageTray=1 ActiveDocument.PageSetup.RightMargin=10 On trying this on some documents that contain section breaks an error is and stepping through that test macro it worked fine. To start viewing messages, select the forum that you want to visit from the selection below.

Posting Guidelines Promoting, selling, recruiting, coursework and thesis posting is forbidden.Tek-Tips Posting Policies Jobs Jobs from Indeed What: Where: jobs by Link To This Forum! My problem is this. All of the individual suite applications are supported here, so please post your question in the relevant section for help. I tried using it and it did > have a window showing paper sizes, but I didn't really know what to > do with the information.

The following example inserts text into the first page footer in the active document. If you read articles published by MS Word MVPs you will see a common theme that they recommend working with the underlying objects instead of using Selection object and View.SeekView whenever Formatted all the pieces to have the same format which meant that the collection didn't have to run the macro. –dbasnett Apr 4 at 11:33 | show 2 more comments Your Subscribe to our monthly newsletter for tech news and trends Membership How it Works Gigs Live Careers Plans and Pricing For Business Become an Expert Resource Center About Us Who We

Office / Productivity Office Suites-Other MS Office MS Word How to get a free trial of Office 365 with the Office 2016 desktop applications Video by: Joe Office 365 is currently Join Now For immediate help use Live now! To try and find the problem, I began recording a new test macro to just do these first few lines... I can then comment that out and it will continue past that, but then if those two lines don't get processed the rest of the script doesn't insert the header/footer information

Many of the printer drivers do not use numbers from the wdPaperTray enumeration. more hot questions question feed lang-vb about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation HotDocs Wiki Page Discussion View source History Search Personal tools Log in / create account Navigation Main page Contents Glossary Categories Community portal HotDocs Knowledge Base Developer Corner Problems & Solutions Rain Longson posted Oct 27, 2016 at 4:43 PM FrontPage 2003 with new data server?

Results 1 to 1 of 1 Thread: [Word 2013] "Run-time error 4608: Value out of range" when adding table to document Tweet Thread Tools Show Printable Version Subscribe to this Thread… 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". I am not a VBA person.

Follow us