Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.tables
Ward Ward is offline
external usenet poster
 
Posts: 5
Default Nested Tables

Hi,
I work in VBA with nested tables. After nested table (a child- or sub-table)
is selected i do some table formatting to both nested table and parent table.
So in my code i want to Set tblParent to the parent table. But i have no idea
how to address the parent table directly. I know that i can move the range by
counting cells like:

Dim tblParent As Table, tblSelection As Table
Dim rng As Range

' with help of the used table.style name i checked if the Child table is
selected if so:
Set tblSelection = Selection.Range.Tables(1)
Set rng = tblSelection.Cell(1, 1).Range
rng.MoveEnd Unit:=wdCell, Count:=-1
Set tblParent = rng.Tables(1)

But I prefer to address the ParentTable direct. Do you have an idea how?

Thanks,
Ward
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested Tables Going Crazy! Jeeslawees Tables 0 August 30th 08 07:57 PM
Selecting Nested Tables RPMitchal Tables 3 August 28th 08 04:37 PM
For the archive, code to format (styles and column widths) tables and nested tables kbutterly Tables 0 January 24th 07 02:00 PM
reference to nested tables k2sarah Tables 1 October 26th 05 04:23 AM
Help with nested tables Anasazi Tables 2 March 18th 05 04:42 AM


All times are GMT +1. The time now is 04:41 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"