WD2000: SHIFT+END Selection Behaves Differently in Word 2000 (209607)



The information in this article applies to:

  • Microsoft Word 2000
  • Microsoft Office 2000 Developer

This article was previously published under Q209607

SYMPTOMS

When you press SHIFT+END to select a line of text in Word 2000, inline graphics that flow onto the next line are not selected.

This behavior is different from Word 97. In Word 97, an inline graphic that flows to the next line is selected as part of the previous line in some instances.

CAUSE

Word 2000 determines the location of the end of the line differently than does Word 97. In Word 2000, the EMBED field that represents the graphic is not selected when you press SHIFT+END if the graphic has moved to the next line. In contrast, in Word 97, the EMBED field is selected when you press SHIFT+END even if the graphic has moved to the next line.

To display the EMBED field, follow these steps:
  1. Click the graphic.
  2. Press SHIFT+F9 to turn on the field code of the embedded graphic. The EMBED field should look similar to the following:

    {EMBED PBrush}

  3. To display the graphic and turn off the EMBED field, select the EMBED field, and then press SHIFT+F9.

WORKAROUND

To work around this issue, press SHIFT+RIGHT ARROW to manually extend the selection to include the graphic.

MORE INFORMATION

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
For more information about how to use the sample code in this article, click the article number below to view the article in the Microsoft Knowledge Base:

212536 OFF2000: How to Run Sample Code from Knowledge Base Articles

This change in behavior may also affect the following line of VBA code:
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
				

Modification Type:MajorLast Reviewed:6/17/2005
Keywords:kbnofix kbprb KB209607 kbAudDeveloper