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  

How do I get rid of "Normal" style in tables ?



 
 
Thread Tools Display Modes
  #1  
Old April 2nd, 2007, 02:42 PM posted to microsoft.public.word.tables
Backen
external usenet poster
 
Posts: 1
Default How do I get rid of "Normal" style in tables ?

I have created a template and don't use "Normal" style anywhere in the
template. When users create a document (from that tamplate) and then create
an table in the document, the table use some table style ("Tabellrutnät" in
swedish). If we position us in the start of the table and press enter, we get
a new paragraph before the table. That paragraph have the "Normal" style.

Why, and how can i get rid of it ?
No style using in the template should be "Normal" or based on "Normal".
I realy want to get rid of all the "Normal" style in the template.

/Anders Back

  #2  
Old April 2nd, 2007, 05:10 PM posted to microsoft.public.word.tables
Lene Fredborg
external usenet poster
 
Posts: 1,294
Default How do I get rid of "Normal" style in tables ?

If you insert a table in the start of a document and press Enter while the
insertion point is in the start of the first table cell, Word executes the
Table Split Table command. That command always inserts a paragraph with the
style Normal.

I think the only way to change this is to use a macro. In order for the
macro to run instead of the built-in Split Table command, the macro must be
named "TableSplit". You can store the macro in the template. If you want the
macro to run in all documents regardless of the attached template, you could
store it in a global add-in - however, in that case you will need error
handling if you use a custom style name since that style may not exist in all
documents.

Below you will find such macro. The macro first executes the Split Table -
this leaves the insertion point in the new paragraphs that has bee inserted -
then the macro changes the style of that new paragraph. Replace "MyStyleName"
by the relevant style name.

Sub TableSplit()
With Selection
.SplitTable
'Insertion point now in new paragraph
'Replace "MyStyleName" below by the desired style name
.Style = "MyStyleName"
End With
End Sub

--
Regards
Lene Fredborg
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word


"Backen" wrote:

I have created a template and don't use "Normal" style anywhere in the
template. When users create a document (from that tamplate) and then create
an table in the document, the table use some table style ("Tabellrutnät" in
swedish). If we position us in the start of the table and press enter, we get
a new paragraph before the table. That paragraph have the "Normal" style.

Why, and how can i get rid of it ?
No style using in the template should be "Normal" or based on "Normal".
I realy want to get rid of all the "Normal" style in the template.

/Anders Back

 




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 07:16 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.