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: http://0.0.0.5/ Connection to 0.0.0.5 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!
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