Solved

Custom style sets

Posted on 2010-09-01
8
612 Views
Last Modified: 2012-06-27
Hi everyone,

I wanted to make use of Word 2007 style sets, so I've created a set of custom styles in a template. I named each of the styles with a unique name and added them to the style gallery, then made a style set.

I wanted to make it as easy as possible for the end user of the template to format the document so instead of having to click on the custom style names that I created, I tried to go through and match my custom styles with the corresponding inbuilt style used by Word. For example, Word's h1 heading was matched to my custom h1 heading, so that the user can just click on h1 in the style gallery and it will be styled according to the attributes that I set for the custom style. This works for h1 but I'm having problems with a couple of others.

Instead of clicking on a custom bullet style, it would be easier for the user to just click the bullet menu. I created a blank document and after typing in some sample text and applying the default bullets from the the normal template, I looked in the styles pane and saw that this default bullet was given a style of "List style". Since this was the case, back in my template document I matched my custom style to this inbuilt style. When I tested though, the bullet character did match my custom style but the hanging indent was not the same. I don't understand why it didn't match it completely. After I had matched the style, I checked the style definition for the inbuilt style and it said that it was based on my style but it still retained some of it's own definition. I'm not sure why I can't get it to match so that pressing the bullet list will always produce a list style according my unique style.

A similar thing is happening with list numbering. As with the bullets, I created a custom style, then I matched it with the "List paragraph" style which apparently is the style that is being used for the default numbering list. When I tested, I get the green coloured number however the indent is totally out and doesn't match my own.

This is the first time I've used Word 2007 to create complex style sets so I can't be sure whether I'm going about it the right way. Although as mentioned it does work with the heading styles so maybe something extra needs to be done to get the bullets and numbering working correctly.

Would really appreciate any help.
0
Comment
Question by:gwh2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 32

Expert Comment

by:Paul Sauvé
ID: 33583300
Generally, you should be able to modify Word`s styles to correspond to your needs. That way, you keep the same style names as the notmal.dotx file, but with your modifications.
But I, too, have had problems with the bullet and numbered lists. Try incremental changes when doing this and you may see at what step the error occurs.
The trick is to create a new document model and distribute this .dotx or .dotm model for creating new documents.
0
 
LVL 1

Author Comment

by:gwh2
ID: 33584575
Thanks for the reply,

How do you create a new document model?
0
 
LVL 1

Author Comment

by:gwh2
ID: 33584613
Also just one other question if that's ok: I have a heading style whereby the paragraph is shaded a colour. If this heading falls at the bottom of a column and I want to push it to the top of the next column, I insert a column break. This relocates the paragraph but it also leaves the shading colour at the bottom of the previous column.

If instead I insert the column break at the end of the previous paragraph which is styled with body text, then there's a blank paragraph at the top of column two which isn't what I was going for, ie. the heading needs to be flush with the top of the column.

Is there a workaround for this?
0
Office 365 Advanced Training for Admins

Special Offer:  Buy 1 course, get 2nd free!  Buy the 'Managing Office 365 Identities & Requirements' course w/ Accelerated TestPrep, and automatically receive the 'Enabling Office 365 Services' course FREE!

 
LVL 32

Accepted Solution

by:
Paul Sauvé earned 500 total points
ID: 33587350
How do you create a new document model?
Once you have completes the changes to the styles, use the Save as option and select Word model in the Document type. Give it a significant name and save the new document model.
I have a heading style whereby the paragraph is shaded a colour. If this heading falls at the bottom of a column and I want to push it to the top of the next column, I insert a column break
OK - to start the column at the top of the page, select  the line (the entire line) of the table you want on the following page, then specify a page break before a paragraph:
  • On the Page Layout tab, click the Paragraph Dialog Box Launcher (the small arrow at bottom - right of the Paragraph dialogue), and then click the Line and Page Breaks tab.
  • Select the Page break before check box.
Sorry about the delay I`m in Quebec, Canada!!!
 
0
 
LVL 32

Expert Comment

by:Paul Sauvé
ID: 33587626

I have a heading style whereby the paragraph is shaded a colour. If this heading falls at the bottom of a column and I want to push it to the top of the next column, I insert a column break
Does this example help?

NewPageTable.docx
0
 
LVL 1

Author Comment

by:gwh2
ID: 33595626
Thanks so much for the help and the example. I understand this now.

Could I ask just one other question: I've used a document building block control (found on the developer tab). This control allows you to put in placeholder text, eg. "Insert a quick part here if needed". I have a few of these controls in the document, but not all controls will be used to insert a quick part. It will depend on the document use. Since this is the case, the placeholder text will continue to remain onscreen and it will also print which isn't what I'd like. So I wondered if there was a way to set this placeholder text not to print, ie. only to remain onscreen?

I'm not sure if this is possible but if so could you provide instructions on how to do this?

Appreciate your continued support.
0
 
LVL 32

Expert Comment

by:Paul Sauvé
ID: 33599410
I`m not sure about this - I know that there is a QuickPart option in the Insert tab, but I see nothing on the developer tab on my version of Windows (2010 beta)..
0
 
LVL 1

Author Comment

by:gwh2
ID: 33601415
That's no problem - I'll try and find out elsewhere.

Thanks again for the other information.
0

Featured Post

Increase your protection from Zero Day threats!

Running two Antivirus' is never a good idea.
Taking advantage of Multiple Security layers on the other hand can often save your hide.
See which top notch security software brands have been proven to happily coexist together.
Reduce your chances of becoming a statistic.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Outlook Free & Paid Tools
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
The viewer will learn how to  create a slide that will launch other presentations in Microsoft PowerPoint. In the finished slide, each item launches a new PowerPoint presentation and when each is finished it automatically comes back to this slide: …

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question