Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.tables
Backen Backen is offline
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   Report Post  
Posted to microsoft.public.word.tables
Lene Fredborg Lene Fredborg is offline
external usenet poster
 
Posts: 1,291
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

Reply
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
having "Heading" style on same line as Normal text Eddie O Microsoft Word Help 2 December 7th 06 04:21 AM
Stop tables from imposing "Table Grid" style?? Ed New Users 9 October 3rd 06 06:08 PM
Numbered list now based on Normal instead of "No Style" Bothell writer Microsoft Word Help 0 August 31st 06 07:19 PM
How do I save changes to the "normal" style? dchapman Microsoft Word Help 1 June 14th 06 03:55 PM
Font changes in "Normal" style. Dan Schaffer New Users 4 October 26th 05 01:01 AM


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