Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2009, 04:01 PM
DavidB DavidB is offline Referencing Tables in Visual Basic Editor Windows 2K Referencing Tables in Visual Basic Editor Office 2000
Novice
Referencing Tables in Visual Basic Editor
 
Join Date: Sep 2009
Posts: 2
DavidB is on a distinguished road
Cool Referencing Tables in Visual Basic Editor

I have some tables in word that I up-date from data sourced from SQL.



This all works fine.

My question is as I reference the tables as per the example.

Example: ActiveDocument.Tables(4).Columns(1).Cells(cue).Ran ge.Text =

I would like to know if there is another way to identify the tables as if you remove or add tables prior to this one it is no longer "Tables(4)" so the piece of code fails.

I look forward to your response.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto-updating basic math functions & cross-referencing tables FranklinBluth Word Tables 13 11-19-2009 10:26 AM
Referencing Tables in Visual Basic Editor turning off visual commands trob Word 3 12-13-2008 04:31 PM
Referencing Tables in Visual Basic Editor A little Visual Basic Help Please leroytrolley Excel 4 08-22-2008 03:57 AM
Powerpoint and Visual Studio ferrja PowerPoint 0 03-29-2006 08:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:09 PM.


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