list paragraph number at word Results

Page 1 of 3.
Results 1...20 of 41

Sponsored Links:

I use Word 2010 and I'm looking for a solution for the List Paragraph number value does not restart at 1 after a new Heading.

How can I have my "List Paragraph" Style restarts at 1 inmediately after a new Heading Style?

Thanks and God bless!

I recently tried to use Word's numbered paragraph feature in real work for the first time. The results were bizarre, and I had to go back to numbering paragraphs manually. I hope someone can clarify what Word was doing and how to make it do what I wanted.

Problems occurred when I tried to start a new numbered list at #1. The Format/Bullets and Numbering dialog box has a "Restart numbering" radio button for this purpose, so it should have been straightforward. It wasn't.

I had a "Numbered" style whose properties included paragraph numbering. For convenience, I created an additional "First Numbered" style which was based on "Numbered" but had "Restart numbering" selected.

I found that "First Numbered" didn't work. When I selected it, I still got a continuation of the previous numbering. I still had to open the Bullets and Numbering dialog box and click Restart Numbering at the start of each list.

After this happened a few times, I stopped trying to use my "First Numbered" style. I set the first paragraph's style to "Numbered," then restarted numbering manually. Soon I noticed that when I restarted numbering manually, Word changed the style from "Numbered" to "First Numbered"! I have no idea how it did that! It seemed like a mind reading trick, applied with notable perversity.

Then I hit cases where I couldn't restart numbering manually because the dialog box's Restart Numbering / Continue Previous List radio buttons were disabled. At that point I gave up and went back to numbering the paragraphs by typing in numbers.

It appears either that the numbered paragraph feature still has serious bugs, or its logic is too Byzantine to for an experienced Word user to figure out in several hours of struggle.

Can anyone explain what Word did to me, and how to make numbered paragraphs work?

I have a problem with styles that change their paragraph properties - specifically indentation values - without my wanting them to. This problem is currently being exhibited in Word 2007, but I also used to experience it in Word 2003, though I don't ever remember it happening in Word 2000.

I set my styles up on the Normal template to have "nice" indent values in the metric system. So I use a default tab distance of 0.75 cm and have indents that are multiples of this value for left indents, hanging indents etc. None of my styles have "automatically update" selected. I find that gets me into much too much trouble!

When I use these on bulleted and numbered lists I start to get problems.

My current problem relates to a my style called "List Number 2". I have set it up in the Normal.dotm template with left indent of 0.75 and a hanging indent of 0.75. The tab setting is to have a single left tab at 1.5 and it is a numbered list with numbering style "1, 2, 3, ..."

Now I use this style in a document that is based on the Normal template. However, I want to change the numbering style to "i, ii, iii, ..." so I change the style in the new document (which is linked to the Normal.dom template but has automatically update styles turned off). Immediately I do this, the hanging indent changes to 0.63cm (i.e. .25in). So I change this back to 0.75cm again.

When I use this style it works fine on the first list, but when I create another list, it continues the numbering from the first list. So I right click on the first item in the second list and select "Restart at i". The numbering restarts, but the hanging indent also changes to 0.63cm. The only way to have the list numbering restart from i and keep my hanging indent is to manually adjust the indent on the ruler at the top of the page.


I have set up a company template "Report.dotx" and copied over all of the list styles from the normal.dotm template to the report template.

I create a document based on the company template and use the List Number 2 style. I want to change the numbering style to "i, ii, iii, ...". As before I change the style in the new document. It looks nearly right except for the hanging indent, but if I show the Styles window (Ctlr+Alt+S) and hover over the style, I see that "List Number 2" now has NO numbering, NO indents of any kind, even though the paragraph I had applied it to previously looks pretty good. If I now reapply that style I lose all indents and numbering.

So I go through the process of modifying the style again. When I apply the desired numbering style from the "Modify Style" window, selecting "Numbering" from the "Format" drop down box, it gives me the right number format, but with indents of 0.63cm again. I select "Paragraph" from the drop down box and change left and hanging indents to 0.75cm. When I have done that I notice (still in the "Modify Style" window) that it now shows "Indent: Left: 0.75 cm, Space Before: 0 pt, Tab stops: 1.5 cm, Left + Not at 0.75 cm, Numbered + Level: 1 + Numbering Style: i, ii, iii, … + Start at: 1 + Alignment: Left + Aligned at: 0.63 cm + Indent at: 1.27 cm, Based on: List Number" (my bold formatting added).

So where did those alignment values of 0.63 cm and 1.27 cm come from? And how on earth do I change them?? Because when I restart the numbering on the next list that has this style, I lose the 0.75 cm values in the paragraph whose numbering has been restarted, and I now have left and hanging indents of 0.63 cm.

I have written up this while I do all of these actions in the document I am working on. However, the problem is not always consistent. Sometimes I lose all indents (as above) sometimes the left indent goes to 2.14 cm (I think that's the value) sometimes to a much larger value like 3.17 cm. And sometimes changing the indents on one numbered paragraph (where the numbering has been restarted) changes the style right throughout the document. However I cannot reproduce any of that right at this moment, so I can't explain how it happens.

Can anyone suggest how to fix this? I am willing to build a template style by style if I need to, but I have done this in the past and it doesn't seem to fix the problem.

Hello, all.

Am tearing my hair out with this problem. In Word 2007, I can't seem to save a style to the NORMAL template that sets up a simple single-level list, Arabic numerals, with a first-line indent of .5" and text indent of 0 (zero) -- so that the text wraps to the left margin. I can create a style and tell it to save in "New documents based on this template" (or whatever the exact wording is; don't have Word 2007 available at this job site), but the minute I start a blank document and apply the style, the indents revert to something unusable (I think the first-line indent changes to .75" and the text wrap changes to .25", but can't recall at the moment -- and it might not be consistent).

It doesn't seem to matter whether I base the new numbering style on the List Paragraph style, a List Number style, the Normal Style, or no style at all. I can get it set up correctly, and I know how to save it to the template (I'm a software trainer and I've been using and teaching Word since version 6), but the style simply doesn't persist.

I've tried it on more than one computer (both laptops), without success. Well, that's not entirely true: On one of the computers, I was able to create a style some months ago that had all the right settings and that appears to persist from document to document. I've looked at the settings, and can't figure out how it differs from the other styles I set up where the indents do not persist. (It's based on the List Paragraph style, oddly enough; other styles I base on the List Paragraph style don't persist regardless of what I do, and I've read loads of web exchanges in which MVPs and others advise not to use the List Paragraph style because it is quirky and unreliable.)

Any bright ideas would be most appreciated. I've run out.

Thanks in advance,

I have an observation and a question regarding cross-references:

1. Today I was updating a document that has outline numbering attached to Level 1, 2, 3 styles. I needed to add a new Level 1 section. I positioned the insertion point at the beginning of the Level 1 section that was to be directly under the new section and pressed Enter. I got just what I wanted--a Level 1 style waiting for me to type the heading in.

Unfortunately, when I updated the cross-references, I happened to notice that there were cross-references to this new section that I hadn't inserted. Those references should have been to the section just below the new section, but apparently the way I created the heading by pressing Enter at the start of the heading broke the "target" part of the cross-reference. This is a bit of a problem, especially since Word doesn't indicate that the reference is broken. If I had pressed Enter at the end of the preceding paragraph and then applied the Level 1 style, it would have been OK. That's how I'll create new sections in the future.

2. Typical headings in my documents look like:

Level 1 - numbered 1, 2, 3
Level 2 - numbered (a), ([img]/forums/images/smilies/cool.gif[/img], ©
Level 3 - numbered (i), (ii), (iii)

I have cross-references to all three levels. Cross-references to Level 2 need to look like 1© or 2([img]/forums/images/smilies/cool.gif[/img] and cross-references to Level 3 need to look like 1©(iv) or 3(f)(iv). In other words, I need to attach the parent levels to the lowest level of the cross-reference.

To insert a reference to 3(f)(iv), I select Insert, Cross-reference. For the reference type, I choose Numbered item. For insert reference to, I select Paragraph number. I would then select (iv) in the list underneath 3(f) and click Insert. Sometimes it just inserts the (iv) and sometimes it inserts (3)(f)(iv). I haven't figured out any pattern as to why it sometimes does and sometimes doesn't--it can have both behaviors in the same document! (By the way, I don't want to include the word "above" or "below" in the cross-reference.) When it doesn't insert the parents, I just insert them separately. Is there anything I can do to specify that Word should insert the parent levels by default?

Many thanks for your help!

- Linda

Hi everyone,

Add to the list of things I hate about Word 2007 the fact that it wants numbered paragraphs to be indented. Yes, that may generally be the convention, but my company's style guide says we should not indent them.

Currently I start each list and immediately tell the first item to not be indented. Of course this carries on throughout the list, but when I start a new list and tell it to start at 1 again Word immediately indents the new list.

How can I tell Word to stop this permanently? I tried editing the List Paragraph style in Normal.dotx, but sure enough it forced the indent again in each new document.

Oh, and Microsoft? Thank you, where "Thank" is replaced by a 4-letter word starting with f.

I use Word 97. I have a problem similar to the one "writer" has/had.

I am using styles for formatting paragraphs and numbering. The styles work sometimes and don't other times. As an example, what I need is the following:

(A) Major Subject
"indent" (1) First subSubject
"indent" (2) Second subSubject
"indent""indent" (i) First subsub
"indent""indent" (ii) Second subsub
"indent" (3) Third subSubject
( Second Major Subject
"indent" (1) First subSubject
"indent" (2) Second subSubject

This is what I want, but what I get, sometimes, is, under (, instead of a (1), I get a (4).

When I try to start the numbering at (1) using the correct style, I may get (1), but it changes the paragraph format or it leaves it at (4).

I feel like an idiot. Maybe I need a macro like was posted for "writer", but I would think that Word 97 wouldn't behave this way. Am I doing something wrong?


We're just beginning the process of looking at Word 2002 with an eye to migrating into it. (The we in this case would be the law firm I work for.) I've been reading the Word 2002 Legal Users' Guide from Microsoft and wondered what practical experience with list styles has been like. Does anyone here use them? With what results? Are they stable, editable, non-breakable, specifically with respect to numbering?

We are currently using Word 2000 with SoftWise to create numbered heading styles. SoftWise uses Word's built-in ability to create numbered heading styles, but the interface is considerably easier to learn and use. Are any of you legal people out there using Word 2002 alone to do numbered heading styles? If so, how difficult was it to get your users 1) to learn how to do this; and 2) to embrace it?

Any other thoughts on list styles and paragraph numbering? (Leaving out the usual screeds about needing to link numbering to heading styles - we already say that to our users at least 19 times a day - you'd be preaching to the choir.) Thank you all very much.

Lee Morgan

There is probably a simple answer to this that I am missing. I have a style defined for numbered lists in my documents. When I apply the style the first time, it starts numbering 1. 2. 3. etc. When I apply the same format maye five paragraphs later, the new Numbered List starts numbering from the last number of the previous list, e.g., 5. 6. etc.. I then have to go into Format>Bullets and Numbering... and reset the numbered list to start at 1., 2., again. Surely there must be a better way to make this reset happen. Any insight anyone can provide will be greatly appreciated.

Ron M

As a recent immigrant from WordPerfectland, I've been surprised at the number of annoying (or, at least, potentially annoying) "features" Word has that it won't allow you to turn off. And my "top 10" list of these would certainly have to include the fact that, when you change a paragraph's style, Word nukes any direct character formatting that takes up more than half the paragraph (e.g., if more than half the paragraph's text is italic, and assuming the new paragraph style doesn't include italic, the character-formatted italic text ceases to be italic).

My questions are:

1. Just to confirm (since hope springs eternal): Is there a way to turn this lovely feature off in Word 2002?

2. OK, well, looking ahead, how about in Word 2003?

3. I understand one way to solve the problem is to do most or all of my character-formatting with character styles, which Word seems to always leave alone when you change the paragraph's style. Are there downsides I should be aware of before I create a handful of new character styles (like, uh, Bold, Italic and BoldItalic) and start using them heavily. (I realize I could limit their use to situations where the formatted text is more than half the paragraph, but I'd ideally like a consistent approach where I can just hit Ctrl-I every time I want italic without having to think about whether the formatting is more than half the paragraph).

4. Are there other solutions Loungers have adopted and been satisfied with?

the issue is: on formatted heading styles and numbering using restart or continue numbering the paragraph loses its indentation and tab position, and you have to reformat the heading styles again. if its a large document this can take be very time consuming.

I've discovered the reason is the configurations have to be set in 2 locations:
1. in Format, Styles and Formatting...heading styles Format, Paragraph and Format, Tabs
2. in Format, Styles and Formatting... heading styles, Format Numbering... set the Number align position and Tab spacing

ie. in Format Numbering
in Customise Outline Numbered List
The Number Position Left, aligned at: #
Relates to the Left paragraph indentation

The Tab position – tab space after # and indent at: #
Relates to the tab position

If the 2 configurations are set differently, when you use restart or continue, Word gets confused with the different configurations and the result is wacky paragraph indentations.

Once the heading style is set in these 2 locations, when using restart, and continuing the numbering, the result is the paragraph is set and will “stick”. No lose of indentations.

Anyone else experienced this? or can confirm this?


In Word 2007, I would like to create a template where I can have numbered lists in which the list items have different formatting depending on their role in the list, and I would like the formatting to be controlled by styles. Each separate list (containing items of the various styles) should start at 1. The problem I'm encountering is that on the second numbered list, when I right-click the first line and select "Restart at 1" the style of that line changes to the style’s “parent” style. I think I need to use a parent style so the numbering will be continuous within my list.
To reproduce the problem in distilled form, I’ve created a new template file at

I have a style called Use Case based on the List Paragraph style (I created it by starting with Normal and applying a single-level numbered list and editing the Adjust List Indents properties), and another style, Use Case Emphasis, based on Use Case and with italics added. If I create the following two lists:

Use Case 1 (Normal style underlined)
1. Use case 1 step 1 (Use Case style)
2. Use case 1 step 2 (Use Case style)
3. Use case 1 step 3 (Use Case style)
4. Use case 1 step 4 (Use Case style)

Use Case 2 (Normal style underlined)
5. Use Case 2 step 1 (Use Case Emphasis style)
6. Use Case 2 step 2 (Use Case Emphasis style)
7. Use Case 2 step 3 (Use Case style)
8. Use Case 2 step 4 (Use Case style)

Note that lines 5 and 6 are in Use Case Emphasis style; this is correct. Now I want the second list to be numbered from 1 to 4 so I right-click line 5 and select “Restart at 1.” The list becomes numbered from 1 to 4 as I wanted, but now line 1 (formerly line 5) is in Use Case style and not in Use Case Emphasis style. What’s more, if I manually apply Use Case Emphasis back to the line, the numbering reverts back to 5 to 8!

From these forums I have read that the numbering is separate from the style, so I can't imagine how changing the numbering should change the style.

As you will see in the example, this behavior exist also if I create my Use Case style based on a multilevel numbered list.

Any help would be greatly appreciated. Thank you!

I'm editing a 72-page document that uses manually-built outline numbering, and I've chosen to copy and paste the paragraphs into a fresh document that uses my own custom-built template with styles and outline numbering. The numbering scheme uses all five levels of the List Number style family. Today I found I need to modify the properties of one of the levels. I followed the practice that I learned here in the Lounge. I clicked a paragraph that uses the highest level (List Number); then, in the Styles and Formatting pane, I right-clicked the List Number style > Modify.... Next, in the Modify Style dialog box, I clicked on Format > Numbering.... At that moment, Word froze. Up popped the little "we're so sorry, but Word stopped working and we have to shut down" message box. Word relaunched itself and recovered both documents. I closed both documents and opened the template on which my new document is based. I tried to modify the numbering scheme in the template, but again Word crashed.

This has been happening rather frequently over the past week or so. Last week, I tried to fix the problem by first deleting my temp files, then by deleting the Normal template and letting Word re-create it. Of course, that cost me all my toolbar customization, but I figured that might be a small price to pay if it would fix the problem. Word behaved well for about a day and a half, but now the troubles are reappearing. I wonder if anyone has any suggestions. I have Word open at this moment to a blank new document. Here, Word allows me to modify an outline numbering scheme without crashing.

One more piece of evidence that might be relevant: Last week, my computer gave me the dreaded BSOD about five times. Sometimes just once a day, sometimes twice. The BSOD and the crashing of Word never appeared to coincide, but of course I was using Word with the documents I described above whenever the computer itself crashed. Could there be a connection?

By the way, I use this machine (a Dell D620 laptop) on a corporate network. I save my work on the servers, but Word is installed locally. I have consulted our IT department regarding the BSOD problem, and they tell me their only solution is to reimage my hard drive. I have not consulted them regarding my problem with Word. My impression is that these people are very good with hardware and system issues, but they're typically ill-prepared to deal with issues with MS-Office. That's why I turn to the Lounge for support. I'll appreciate any suggestions.

For the record, this post is related to the one I made last week (post 707777).

I was sent a file by e-mail and when I opened it in Word Starter 2010 it was mostly blank. The chapter number appears at the top and a paragraph in italics. The rest of the page is blank, the next page is blank, etc. Where there are tables, the boundary lines of the table show up, but no text. Sometimes the caption at the bottom of the table does appear. There are some places with bullets, where several bullets appear on the page with no text. The other chapter has a bit more showing. A couple of the tables did appear and some other paragraphs, again in italics. It seems that the "regular" text doesn't show up.

It’s apparently an older document. The filename starts with Word 97 and is listed as being in Word 97-2003 format. The extension is .doc and not .docx. I wouldn’t think the fact that I have the Starter and not the full program would prevent a document from showing up.

Someone suggested that perhaps I need something to enable 10 to read the older file. I remember in the past I needed to download something in order for an older program to be able to open .docx documents, but it hadn’t occurred to me that the reverse might be true.

I ended up opening it in WordPerfect and the full document appeared. So, the document itself was fine.

Once again, after a year or so of respite, I am struggling with the Multilevel List Monster.

I am trying to define a series of multilevel list styles that all work the same way in different section levels with different left margins. For example, Heading 1 has a left indent of 0"; its Next Paragraph Style is Normal, which also has a left indent of 0". I need a corresponding list style whose level 1 has a left indent of, say, 0.25". Heading 2 has a left indent of 0.5"; its Next Paragraph Style is Normal 2, which also has a left indent of 0.5". I need a corresponding list style whose level 1 has a left indent of 0.75". And so on.

As a test, I created two multilevel list styles named List style 1 and List style 2. They don’t have different indents, but they have other differences that make them easy to tell apart.

I can create a multilevel list by starting a new paragraph, setting its style to List style 1 or List style 2, and typing. The whole list is formatted in the requested style. So far, so good.

After that, things fall apart.

If a part of the document is changed to a different heading level, I need to change the style of any ML lists it contains. I can’t make that work cleanly.

First, I placed the insertion point at the start of the first entry in a List style 1 list. The Apply Styles dialog said that the paragraph’s style was List Paragraph, a style that I never applied. So how can I tell what list style was applied?

I used Apply Styles to set List style 2. After I pressed Enter, Apply Styles told me that the first paragraph’s style was still List Paragraph. And the list’s style didn’t change – not even the first entry, where the insertion point was.

I selected the entire list and tried again. This changed the entire list's style as requested -- except for the first entry, which didn’t change.

I found that I could change the style of the entire list by selecting the list and then using the “Multilevel list” dropdown in the Ribbon. But the dropdown shows the list styles iconically -- and it doesn’t show their names! So I can apply list styles with the dropdown, but I can't tell which style is which, and I can tell which style is which in the Apply Styles dialog, but I can’t apply them.

If I float the mouse pointer over a ML list item in the List Styles part of the dropdown, it sometimes shows the style’s name in a balloon. Sometimes it doesn’t. I haven’t figured out why, or how to make it display the name when it doesn’t want to. So if I want to apply a particular list style, I must move the mouse pointer from style to style, asking “Are you the style I want? Are you the style I want?” until I find The One. Except that sometimes it won't let me.

Meanwhile, the Styles dialog doesn’t show ML styles at all, even when it’s set to show “All styles.”

I’ve noticed that the dropdown sometimes shows ML list styles and sometimes doesn’t. I think it’s hiding them (sometimes) when the insertion point isn’t in a ML list, which means that the dropdown is useless for starting a new numbered list. Since the Apply Styles dialog appears to be useless for changing a list’s style, I have to use both interfaces – one for creating lists, the other for changing them. After I get this to work I have to explain it to users whose grasp of Word may be tenuous. I’m not confident that I will be able to do so.

The vertical spacing of items in the list is controlled by the magic List Paragraph style. The whole list. Every list.

This gives me two choices for spacing. If I disable List Paragraph's “Don’t add space between paragraphs of the same style” property, I can have any amount of space between list entries, but the amount of space before the first entry and/or after the last is the same as for every other entry in the list. If I enable “Don’t add space,” I can have any amount of space I want before the first entry and after the last, but there is no space between entries at all.

Unfortunately the style guide requires one amount of space before the first list entry and a smaller amount between entries. In a flat list this is easy to accomplish with “Style for following paragraph.” In a ML list it seems to be impossible.

I don't have a need for different spacing in different lists. That's lucky; it's something else that would be easy to do with flat lists, and appears to be impossible with ML lists.

In general, it seems to me that Microsoft created a completely new model for multilevel list formatting and styles instead of extending the one used everywhere else. Then they let some of the original style model's UI components affect the ML list model as well, but sometimes in unintuitive or possibly random ways. Is that an accurate assessment, or is there some underlying logic to this stuff that I’ve missed?

I've got an outline numbering scheme where the first 4 levels are 1, 1.1, 1.1.1 and (a). The 4th level -- (a) -- sometimes ends up being used for substantive text paragraphs and sometimes for lists of short items (less than one line long). In the former case I want spacing between paragraphs, and in the latter case not.

As an experiment, I just created a totally clean new document based on the Word 2002 default (straight out of the box) Normal template. Then I fastidiously set up a 9-level outline numbering scheme linked to the 9 Heading styles in the famous how-to-stay-out-of-trouble fashion. When I'd finished, I confirmed that the document had one (and only one) List Template.

Here's the twist: Then I created a new style -- which I called Heading 4 SS -- which is "Based on" Heading 4, and with the only difference with Heading 4 being that I checked "Don't add space between paragraphs of the same style" under Paragraph Format for Heading 4 SS. (In creating Heading 4 SS, I did not visit the Numbering dialog.) Then I re-checked the document's List Template count and it still had only one List Template, meaning that (as I'd hoped) Heading 4 SS is linked to the same List Template as Heading 4 (and the other 8 built-in Heading styles).

I then tried formatting a series of paragraphs and the numbering scheme works exactly as intended.

My question is this: Notwithstanding that everything is working fine now, does the fact that I have 2 different styles linked to the 4th level of the same List Template mean that I'm working with an unstable structure that is reasonably likely to act up at some point? Or am I probably safe (1) given that my 2nd link to the 4th level of the List Template is the indirect result of a "Based on" link to the directly-linked style and (2) assuming that I never independently modify the numbering formatting for the 2nd 4th-level style (i.e., assuming any change I ever make to level 4 of the List Template results from "digging to China" with the cursor in a Heading 1 paragraph)?

An alternative, of course, would be to dispense with Heading 4 SS and simply implement the "Don't add space between paragraphs of the same style" formatting as direct formatting when needed. But I understand that the recommended Word approach (I'm a newbie) is to minimize the use of direct formatting, so I thought the alternative-style approach might be the way to go.

I see that the MVP site has a new spell check routine for forms. However, I noticed that if the correction is such that the form field is destroyed, it seems to hang.

For example, if your text is something like this:

Now is the time{for} all...

where {for} is actually a formfield with the word "for", Word will naturally mark them as incorrect & suggest time {for}. When you accept that correction, you actually destroy the form field.

Then Word hangs at the line 102 xxiii. which I showed below. I wonder if someone knows how to fix it.

Thanks in advance,

Here is the code (with numbered lines):
1. Sub FormsSpellCheck()
2. '
3. ' FormsSpellCheck Macro
4. ' Macro taken from MVP site on 1/5/02
5. '
6. Dim Cancelled As Boolean, MyRange As Range, CorrectedError As String
7. Dim oSection As Section, OriginalRange As Range, oDoc As Document

8. 'If no documents open, quit macro
9. If Documents.Count = 0 Then
10. Exit Sub
11. End If

12. Set oDoc = ActiveDocument

13. 'Check what type of protection - if any - has been applied
14. Select Case oDoc.ProtectionType

15. 'If not protected, or if protected for tracked changes,
16. 'run spellchecker and quit
17. '-------------
18. Case wdNoProtection, wdAllowOnlyRevisions
19. If Options.CheckGrammarWithSpelling Then
20. oDoc.CheckGrammar
21. Else
22. oDoc.CheckSpelling
23. End If
24. Application.ScreenRefresh
25. If oDoc.SpellingErrors.Count = 0 Then
26. If Options.CheckGrammarWithSpelling Then
a. MsgBox "The spelling and grammar check is complete", vbInformation
27. Else
a. MsgBox "The spelling check is complete", vbInformation
28. End If
29. End If
30. System.Cursor = wdCursorNormal
31. Exit Sub
32. '-------------
33. Case wdAllowOnlyComments
34. 'Don't want to run spellchecker if protected for comments
35. Exit Sub
36. End Select

37. Set OriginalRange = Selection.Range
38. System.Cursor = wdCursorWait

39. '-------------
40. '-------------
41. 'If we've got this far, it's protected for forms
42. 'Now unprotect the document
43. oDoc.Unprotect
44. oDoc.SpellingChecked = False

45. 'Check each section for its protection property -
46. 'which you can get even afer unprotecting the document.
47. 'If the section was protected, call a subroutine to spellcheck the formfields
48. 'if it wasn't, spellcheck the section
49. StatusBar = "Spellchecking document ..."
50. For Each oSection In oDoc.Sections
51. If oSection.ProtectedForForms Then
52. Call CheckProtectedSection(oSection)
53. If Cancelled Then
54. 'Boolean variable returned by CheckProtectedSection
55. 'procedure if user pressed Cancel buttoon
56. Exit For
57. End If
58. Else
59. If oSection.Range.SpellingErrors.Count > 0 Then
60. Application.ScreenUpdating = True
61. oSection.Range.CheckSpelling
62. If oSection.Range.SpellingErrors.Count > 0 Then
a. 'User pressed Cancel button
b. '(Pressing Ignore reduces the count, pressing Cancel doesn't)
c. Exit For
63. End If
64. End If
65. End If
66. Next oSection

67. 'Re-protect the document
68. oDoc.Protect Type:=wdAllowOnlyFormFields, noreset:=True
69. OriginalRange.Select
70. Application.ScreenRefresh
71. If oDoc.Range.SpellingErrors.Count = 0 Then
72. MsgBox "The spelling check is complete", vbInformation
73. End If

74. 'Release variables from memory
75. System.Cursor = wdCursorNormal
76. Cancelled = False
77. CorrectedError = vbNullString
78. Set MyRange = Nothing

79. End Sub
80. '--------------------------------------------------------------
81. Private Sub CheckProtectedSection(oSection As Section)

82. Dim FmFld As FormField
83. Dim Cancelled As Boolean, MyRange As Range, CorrectedError As String

84. 'check only the text formfields,
85. 'don't check listboxes and checkboxes - this speeds up the code
86. Application.ScreenUpdating = False
87. For Each FmFld In oSection.Range.FormFields
88. 'Check to see if the field is a text formfield
89. If FmFld.Type = wdFieldFormTextInput Then
90. 'Check if the field is a 'real' text field (no date, formula etc);
91. ' and that it is enabled for text input
92. If FmFld.TextInput.Type = wdRegularText And FmFld.Enabled Then
93. 'The following subroutine won't be called if Word 97 is in use
94. If Not Left$(Application.Version, 1) = "8" Then
a. Call TurnNoProofingOff(FmFld)
95. End If
96. FmFld.Range.SpellingChecked = False

97. 'Change the language constant in the following line if necessary;
98. 'when you type the = sign, a list of all supported language constants will
99. 'appear, and you can choose one from the list.
100. FmFld.Range.LanguageID = wdEnglishUS 'Or whichever is appropriate for you

101. 'If the current form field contains errors, spellcheck the text in it
102. If FmFld.Range.SpellingErrors.Count > 0 Then
a. 'The following condition is to allow for a
'Word 97 bug, which was fixed in 2000;
b. 'if the formfield is in a table an contains more than 1 paragraph, then
c. 'spellchecking it will crash Word 97
d. If Left$(Application.Version, 1) = "8" _
i. And FmFld.Range.Paragraphs.Count > 1 _
ii. And FmFld.Range.Tables.Count > 0 Then
iii. 'Call Word97TableBugWorkaround(FmFld)
iv. If Cancelled Then Exit Sub
e. Else
i. 'Set a range to the formfield's range in case the user
ii. 'accidentally destroys the formfield by overtyping its entire contents
iii. Set MyRange = FmFld.Range
iv. Application.ScreenUpdating = True
v. FmFld.Range.CheckSpelling

vi. If IsObjectValid(FmFld) Then
vii. If FmFld.Range.SpellingErrors.Count > 0 Then
viii. 'User pressed Cancel button
ix. '(Pressing Ignore reduces the count, pressing Cancel doesn't)
x. Cancelled = True
xi. Exit Sub
xii. End If
xiii. Else
xiv. 'If formfield was destroyed because the user overtyped its entire contents
xv. CorrectedError = MyRange.Text
xvi. If Len(CorrectedError) = 0 Then
xvii. CorrectedError = MyRange.Words(1).Text
xviii. End If
xix. Do While Not IsObjectValid(FmFld)
xx. 'If formfield was destroyed when the user corrected the spelling,
xxi. 'reinstate it, and put the user's correction into its result
xxii. ActiveDocument.Undo
xxiii. Loop
xxiv. FmFld.Result = CorrectedError
xxv. End If
f. End If
g. Application.ScreenUpdating = False
103. End If
104. End If
105. End If
106. Next FmFld

107. End Sub
108. '-----------------------------------------------
109. Private Sub TurnNoProofingOff(FmFld As FormField)
110. 'This subroutine is called only in Word 2000 and above
111. FmFld.Range.NoProofing = False
112. End Sub

I'm writing a macro in which I need to evaluate what's at the insertion point. There are two different things I need to do:

1. The document I'm working with has a number of sections. I need to check whether the Section Break is preceded by one or more unneeded paragraph makers. If so, I want to delete the paragraph markers.

2. The macro selects text in a table and assigns it to a variable. I need to evaluate if the selection is empty (as is the case if the cell is blank). Although it appears on the screen that nothing is selected, testing it against an empty string ("") does not test as true. When I displayed the results of the variable in a list box on a user form, the variable seems to have two codes in it--a paragraph marker and something else that displays as an empty square. I can't figure out how to test for this condition.

I seem to be missing a concept in regard to evaluating what's at the insertion point. In the WordPerfect macro language, you could evaluate what's at the right or left of the insertion point with all sorts of built-in commands/codes, and I don't know how to do the equivalent in Word VBA.

Your help will be greatly appreciated. Thanks!

- Linda

I know quite a bit about Word numbering, thanks to MVP articles. I've set up (painfully, I have to say) templates that use outline numbering schemes, and they work really well. So I'm not a complete novice. But I'm afraid I did do a copy/paste on a portion of a list and now I have a mess. My first item in a numbered list will not restart numbering. This means the first number in my list is 10, then the list continues with 1, 2, 3...

I've checked the previous list. I've added paragraphs. I've cleared formatting and then reapplied my list style. All to no avail.

When I bring up the bullets/numbering box when I'm on that first list item, the options for Restart or Continue are grayed out. And even though the Restart Numbering option is showed to be selected, that's not what's happening (and naturally I can't change it since it's grayed out!).

I'd be happy to ditch the whole list and redo it, but partial attempts at doing that don't work and I'm afraid the problem would just move to later lists in the document. I'm sure some tag or something is set behind the scenes that I can't see or modify.

Any ideas how I might be able to clean up this mess?

I thought it would be easy: use Word to convert a set of linked HTML pages to a printable Word document. Load each HTML file, copy each to the end of a the Word document, set some styles, adjust a bit of tricky formatting and print. Little did I know!

I'm seeing a wide range of problems, any of which I could really use some help with (Word's help system being absolutely no use at all, even for the seemingly elementary question 1):

1. What does a paragraph Space Before/After setting of Auto mean? Where is it controlled from?
2. Why are my margin and tab marks on the Ruler suddenly moving in Inch-fraction increments (instead of quarter-centimetres)? Why has the default tab spacing reset to 1.27cm? Everything in my installation is set to metric, so what's going on and how do I fix it?
3. How do I convert hyperlinks to their displayed text element in bulk? (ie: all hyperlinks in the document)
4. Why are some of my numbered lists deciding some items are just normal paragraphs?
5. Why can't I search for the "Strong" character style and replace it with the "Default Character Style" plus Bold? (The Bold seems to disappear.)
6. Why, when I click repeatedly in the scrollbar, does it suddenly take off as if I were holding down my mouse button? How do I turn this behaviour off?
7. Why are tables such a mess in Word 2000? (OK, that's a rhetorical question. But I use tables a lot, and the Word 2000 version is an unmitigated disaster!)
8. I was using Word non-Maximised, taking up about half the screen. Now, when I start Word, it comes up full-screen, but with only the previously-used column actually in use (IOW, the whole right half of the screen is simply blank). I have to maximise then restore to get back to normal. What's going on?
9. How do I get rid of any other vestiges of the document once being HTML?

I don't care what anyone else says, in my experience, Word 97 was easily the most stable and usable version of Word. Word 2000 has been a backwards step in nearly every respect, and the automatic features of Word XP suggest it'll be even worse. Just wonderful.

In the meantime, I could really use some help,


Page 1 of 3.
Results 1...20 of 41