Home > Microsoft Visual > Microsoft Visual Basic Runtime Error 5101

Microsoft Visual Basic Runtime Error 5101

Selection.GoTo What:=wdGoToBookmark, Name:="Pages" Selection.InsertBefore Text:=TB_Pages.Text 'Insert From Field. Word just moves the original location to the new one. Similar Threads Includetext field does not display form field bookmark Guest, Nov 10, 2005, in forum: Microsoft Word Document Management Replies: 0 Views: 395 Guest Nov 10, 2005 Bookmark does not Your name or email address: Do you already have an account? weblink

Guest, Jun 6, 2006, in forum: Microsoft Word Document Management Replies: 0 Views: 198 Guest Jun 6, 2006 Problem arises when ref bookmark is added in the header ,it does not I don't know vba, i just run the macro recorder and paste together bits from that and other things i've seen in threads to get my macros working. report6.doc (19.5 KB, 31 views) Excel Video Tutorials / Excel Dashboards Reports Reply With Quote January 20th, 2006 #2 Badger101 View Profile View Forum Posts Visit Homepage Long Term Member Join ERROR The requested URL could not be retrieved The following error was encountered while trying to retrieve the URL: Connection to failed. http://windowssecrets.com/forums/showthread.php/116686-Run-Time-error-5101-This-bookmark-does-not-exist

What am I doing wrong. The comments are property of their posters. Sign up now! Changed the code to early binding and changed it to take a picture of the whole graph and when I ran the code it worked fine.

You must therefore find some other way to achieve your aims. -- Graham Mayor - Word MVP My web site www.gmayor.com Word MVP web site http://word.mvps.org MIrving wrote: I have created When I go to the > bookmark list, none of the bookmarks are listed. Taffycat posted Dec 20, 2016 at 8:32 AM WCG Stats Tuesday 20 December 2016 WCG Stats posted Dec 20, 2016 at 8:00 AM Regard marcotre80 posted Dec 20, 2016 at 7:06 Here is my code: VB: ChDir "U:\D\B" Workbooks.Open Filename:="U:\D\B\S.xls" ActiveSheet.ChartObjects("AREA").Activate ActiveChart.ChartArea.Select ActiveChart.ChartArea.Copy Dim WdApp As Object, WdDoc As Object Set WdApp = CreateObject("Word.Application") WdApp.Documents.Open "C:\Documents and Settings\tho\My Documents\report6.doc" WdApp.Visible = True

The time now is 03:51 PM. - Contact Us - Microsoft Word Forum WordBanter forum home - FAQ - Links - Privacy Statement - Top Powered by vBulletin Version 3.6.4Copyright ©2000 Newer Than: Search this thread only Search this forum only Display results as threads Useful Searches Recent Posts More... All rights reserved. http://www.wordbanter.com/showthread.php?t=94046 Tran Excel Video Tutorials / Excel Dashboards Reports Reply With Quote January 23rd, 2006 #4 Badger101 View Profile View Forum Posts Visit Homepage Long Term Member Join Date 28th June 2005

PC Review Home Newsgroups > Microsoft Word > Microsoft Word Document Management > Home Home Quick Links Search Forums Recent Posts Forums Forums Quick Links Search Forums Recent Posts Articles Articles The time now is 23:51. Without the bookmarks, a number of macros in the template don't work. Stay logged in Welcome to Office Forums!

I am also noticing that the UserForm for the second document (ProjectTemplate as it refers in VB pane) is referencing the UserForm from my orignial template. http://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_winother/goto-bookmark-in-a-word-document-using-excel-vba/6161709e-5419-4cc4-9c8f-7a2cd5f56d6a Results 1 to 4 of 4 How to skip an error?This is a discussion on How to skip an error? REMINDER! Ozgrid Retains the Rights to ALL Posts and Threads

Use the built-in Help that comes with Excel/Access 2. have a peek at these guys Member Login Remember Me Forgot your password? Without the bookmarks, a number of macros in the template don't work. Sign Up Now!

Share Share this post on Digg Del.icio.us Technorati Twitter Reply With Quote « Previous Thread | Next Thread » Like this thread? A lot of VBA code can be acquired by using the Macro Recorder. "Give a man a fish, feed him for a day. However, on merging, the bookmarks disappear. check over here Register Privacy Policy Terms and Rules Help Popular Sections Tech Support Forums Articles Archives Connect With Us Twitter Log-in Register Contact Us Forum software by XenForo™ ©2010-2016 XenForo Ltd.

Also you can drop this bit from the code as it seems to be pointless to me, but again this should not be causing your probelm. Let me know if you have any ideas or suggestions: (Below is pasted code) Private Sub PB_Cancel_Click() On Error GoTo PB_Cancel_Click_Error Application.ScreenUpdating = False Selection.GoTo What:=wdGoToBookmark, Name:="DocumentStart" Application.ScreenUpdating = True Unload Please try the request again.

You may have to register before you can post: click the register link above to proceed.

Rich www.imits.co.uk - for all your training and development needs! I have created a macro using help from other threads. Selection.GoTo What:=wdGoToBookmark, Name:="DocumentEnd" Application.ScreenUpdating = True Unload Frm_Dialog Exit Sub PB_OK_Click_Error: MsgBox "Error Number " & Err.Number & Chr$(13) & Chr$(10) & Err.Description, vbOKOnly + vbCritical, ActiveDocument.BuiltInDocumentProperties("Company") & " " & Yes, my password is: Forgot your password?

Cody posted Dec 18, 2016 at 2:58 PM macro for paste and format method paik1002 posted Dec 15, 2016 at 12:57 AM Hide text in MSWord 2013 using macro Creative_works posted Runtime error 5101: This bookmark does not exist « Previous Thread | Next Thread » Thread Tools Display Modes #1 November 8th 07, 02:39 AM posted to Dim WDApp As Word.Application Dim WDDoc As Word.Document Set WDApp = GetObject(, "Word.Application") Set WDDoc = WDApp.ActiveDocument WDApp.Selection.Goto What:=wdGoToBookmark, Name:=RangeName Set WDDoc = Nothing Set WDApp = Nothing If that bookmark this content What do I need to add to the code to skip this error and continue with the rest of the macro?

Sign Up Now! Selection.GoTo What:=wdGoToBookmark, Name:="Sender" Selection.InsertBefore Text:=TB_Sender.Text 'Insert Date. You'll be able to ask questions about MS Office or chat with the community and help others. Do you have any ideas for me again?

Loading Ozgrid Excel Help & Best Practices Forums

Register Help Remember Me? So what does 'early binding' mean? No, create an account now. Problem: Getting Error 5101 after hitting "OK" on user input form.

All contents Copyright 1998-2016 by MrExcel Consulting. MIrving View Public Profile View message headers Find all posts by MIrving Find all threads started by MIrving Ads #2 November 8th 07, 07:43 AM posted to microsoft.public.word.docmanagement Graham Thanks in advance. Thanks in advance.

You'll be able to ask any tech support questions, or chat with the community and help others. Guest Guest I have created a merge template with a number of bookmarks in it. I can tell this b/c each UserForm has a different caption. All the best, Tran Excel Video Tutorials / Excel Dashboards Reports Reply With Quote Quick Navigation Excel and/or Word Help Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums:

What am I doing wrong. The time now is 10:51 AM. It was the reference to to the Microsoft Word Object Library. OzGrid accepts no responsibility for ANY adverse effects as a result from downloading attached files.

Selection.GoTo What:=wdGoToBookmark, Name:="Destination" Selection.InsertBefore Text:=TB_Destination.Text 'Insert Company. Reply With Quote January 23rd, 2006 #3 rivercup View Profile View Forum Posts I agreed to these rules Join Date 24th April 2005 Posts 17 Re: Paste into Word, bookmark not LinkBack LinkBack URL About LinkBacks Bookmark & Share Digg this Thread!Add Thread to del.icio.usBookmark in TechnoratiTweet this thread Thread Tools Show Printable Version Display Linear Mode Switch to Hybrid Mode If you're having a computer problem, ask on our forum for advice.