A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Tables
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

word table names in vba



 
 
Thread Tools Display Modes
  #1  
Old November 29th, 2006, 04:20 PM posted to microsoft.public.word.tables
Truescot
external usenet poster
 
Posts: 1
Default word table names in vba

i am trying to find out the names of tables in my word document so that i can
select them in vba, i cannot find this anywhere same with text boxes, i was
abl to find the text box names by creating a text box, recording a macro then
selecting the table and moving it then i got the textbox name in the macro
code usually something like "text box 501" however this trick does not work
with tables, any help would be appreciated

  #2  
Old December 1st, 2006, 02:57 AM posted to microsoft.public.word.tables
Jezebel
external usenet poster
 
Posts: 1,369
Default word table names in vba

Tables don't have names. You can refer to tables from VBA by index number
(they number sequentially from start of document); or in several other ways
depending on what you're trying to do.

BTW, you can assign your own names to textboxes.


"Truescot" wrote in message
...
i am trying to find out the names of tables in my word document so that i
can
select them in vba, i cannot find this anywhere same with text boxes, i
was
abl to find the text box names by creating a text box, recording a macro
then
selecting the table and moving it then i got the textbox name in the macro
code usually something like "text box 501" however this trick does not
work
with tables, any help would be appreciated



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:07 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.