Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-04-2015, 02:09 PM
bgmsd bgmsd is offline Iterating through tables to find a bookmark Windows 7 32bit Iterating through tables to find a bookmark Office 2010 32bit
Novice
Iterating through tables to find a bookmark
 
Join Date: Jun 2015
Posts: 6
bgmsd is on a distinguished road
Default Iterating through tables to find a bookmark

Hello all. I think that this should be fairly easy to do, but I cannot find the answer anywhere. I have a document with several tables in it, and each table has a unique bookmark name. From Access, I want to loop through all tables in my word document and look for a particular table with a certain bookmark name. Lets say that the bookmark name of the table is MyTable. I am writing some sample code below, but I know that it isn't correct. What is the correct structure?



Code:
 
For Each tbl In doc.Tables
        If tbl.Rows.Count > 1 And tbl.Range.Bookmark.Text = "MyTable" Then
Thanks,

David
Reply With Quote
 

Tags
bookmarks, vba word, word 2010



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iterating through tables to find a bookmark Bookmark Not Showing Bookmark RegAudit Word 6 03-16-2015 11:08 PM
Iterating through tables to find a bookmark Find what box in Find and replace limits the length of a search term Hoxton118 Word VBA 7 06-10-2014 05:05 AM
vba to go to next bookmark megatronixs Word VBA 2 06-08-2014 09:53 PM
Iterating through tables to find a bookmark Bad view when using Find and Find & Replace - Word places found string on top line paulkaye Word 4 12-06-2011 11:05 PM
Iterating through tables to find a bookmark VBA to insert Bookmark rockwellsba Word VBA 2 05-31-2011 01:07 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft