Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-20-2015, 05:08 PM
scootermac315 scootermac315 is offline How to reference more than one table in a Word doc Mac OS X How to reference more than one table in a Word doc Office for Mac 2011
Novice
How to reference more than one table in a Word doc
 
Join Date: Jun 2015
Posts: 3
scootermac315 is on a distinguished road
Question How to reference more than one table in a Word doc

Hi Everyone,

First time here and a VBA noob.

I have one, multi-row, 3-column table in the doc. I've figured out this code to target a specific table cell and determine if its contents are within a certain character limit--if not, the writer gets an error message. This is just one of several If statements (all the same code, just checking different cells)

If Len(Selection.Tables(1).Cell(Row:=3, Column:=3).Range) > 40 Then
MsgBox "40 Char Description: Exceeded Character Limit of 40 " & "(" & Len(Selection.Tables(1).Cell(Row:=3, Column:=3).Range) - 2 & ")"
End If

Everything was fine until I was asked to add 3 more identical tables to the doc. Then I got: "The requested member of the collection does not exist"

Any thoughts?



Thanks everyone!
Reply With Quote
 

Tags
error, range, table



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reference more than one table in a Word doc Create updating reference in table droseman Word 1 09-05-2014 05:39 PM
How to reference more than one table in a Word doc extra space when I cross-reference a table or figure Toto Word 1 06-07-2014 03:51 PM
Using reference table BritBiker2 Excel 3 02-23-2013 05:27 AM
Why does Word separate table and reference endnotes by allowing text to go in between newby2013 Word Tables 2 12-31-2012 03:45 PM
How do I reference a merged cell in a multi column & row table in MS Word ('03')? jihanemo Word Tables 0 03-18-2009 08:33 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:31 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