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 2003 table indentation problem



 
 
Thread Tools Display Modes
  #1  
Old March 14th, 2006, 11:47 AM posted to microsoft.public.word.application.errors,microsoft.public.word.docmanagement,microsoft.public.word.formatting.longdocs,microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default Word 2003 table indentation problem

Hi andy,

Don't know why this happened, but you can use this macro to get your tables
aligned to the left margin again:

Sub TablesToLeft()
Dim aTable As Table

For Each aTable In ActiveDocument.Tables
With aTable.Rows
.HorizontalPosition = 0
.RelativeHorizontalPosition = wdRelativeHorizontalPositionMargin
End With
Next aTable

End Sub

Record any macro, say record clicking the B-button on the Standard toolbar,
and be sure to choose the document under 'Store macro in'.
Choose Tools | Macro Macro's..., select your macro and choose Edit. The
VBA-editor opens.
Replace the entire current macro by the one above.
Click the Save button in the VBA editor to save the document. Close the VBA
editor. In Word, choose Tools | Macro Macros... Select TablesToLeft and
click Run.

If there are any tables left that are not positioned correctly, then drag
them a little to the left or right and run the macro again.

Good luck,
Cooz
--
PS: If this is a satisfying answer to your question and you're logged in via
the Microsoft site, please click Yes to "Did this post answer the question?".
Thanks.


"andy k" wrote:

I'm running Word 2003 (without any service packs) on a Windows XP Pro SP2
system.



My document is currently 97 pages long, with a number of tables on certain
pages.



My problem is, that for no reason whatsoever, Word decided to change the
left indentation of all the tables in my document so that all of them are
0.85cm indented.



I can solve the problem by highlighting the table and selecting
FormatParagraph and changing the "Left" box under the heading Indentation
back to 0.



However, this is very long winded due to the size of my document and the
amount of tables I have in it.



Does anyone know why this has happened? Also, how can I get it to revert
back to normal indentation as I originally formatted it, without selecting
each table individually?



Thanks in advance.




  #2  
Old March 17th, 2006, 01:43 AM posted to microsoft.public.word.application.errors,microsoft.public.word.docmanagement,microsoft.public.word.formatting.longdocs,microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default Word 2003 table indentation problem

Thanks for your reply.

However, the macro didn't seem to work. It did move some of the tables
themselves to the left but it didn't move the actual text within the tables
to the left at all.


  #3  
Old March 17th, 2006, 11:56 AM posted to microsoft.public.word.application.errors,microsoft.public.word.docmanagement,microsoft.public.word.formatting.longdocs,microsoft.public.word.tables
external usenet poster
 
Posts: n/a
Default Word 2003 table indentation problem

Andy:

The position of text in a table is controlled by the style applied to the
text.

Unless you changed it, that could be Normal style. If it is, and you put an
indent on Normal style, it will affect the text in your tables.

If you have Normal style set to "Automatically Update" than any time you set
an indent on "any" paragraph in Normal style, every other paragraph in the
document (including those within tables) that have Normal as their style
will be affected.

I suggest that you create a paragraph style named "Table Text". Set it to
the formatting you want, make sure its left, right, above abd below settings
are 0 and apply it to all of your tables.

I STRONGLY suggest that you download Service Pack 2 for Microsoft Office and
apply it, before you get any more nasty surprises :-)

Cheers


On 17/3/06 12:43 PM, in article
, "andy k"
wrote:

Thanks for your reply.

However, the macro didn't seem to work. It did move some of the tables
themselves to the left but it didn't move the actual text within the tables
to the left at all.



--

Please reply to the newsgroup to maintain the thread. Please do not email
me unless I ask you to.

John McGhie
Microsoft MVP, Word and Word for Macintosh. Consultant Technical Writer
Sydney, Australia +61 (0) 4 1209 1410

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
take yet another lesson from wordperfect "reveal codes" wordperfect is superior General Discussion 5 May 11th, 2009 07:58 PM
WP merge file to Word sstires Tables 4 February 14th, 2006 06:26 PM
Access combo box-show name, not ID, in table? write on New Users 30 April 30th, 2005 09:11 PM
Word 2003 Mailmerge problem - works in Word 2000 Rick Robinson Mailmerge 2 April 28th, 2005 10:16 AM
Problem re-sizing table columns in Word 2003 tsuman General Discussion 3 May 29th, 2004 04:57 PM


All times are GMT +1. The time now is 03:09 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.