PPT97: Incorrect Code Recorded Changing Fonts in Grouped Object

Last reviewed: December 2, 1997
Article ID: Q157375
The information in this article applies to:
  • Microsoft PowerPoint 97 for Windows

SYMPTOMS

You may get the following error message when running a macro that was recorded to change the text attributes of a selected object:

   TextFrame (unknown member): Invalid request. This type
   of shape cannot have a TextRange.

CAUSE

This occurs because you have selected multiple objects that are grouped. The macro tries to change the text range of the group shape, which is not a valid request within PowerPoint.

WORKAROUND

If you ungroup your objects, you can run the macro separately for each object containing text, or you can manually change the text attributes by selecting the text and applying the changes.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


Additional query words: 97 8.00 macro grouped font
Keywords : kbprg kbpptvba
Version : WINDOWS:97
Platform : WINDOWS
Issue type : kberrmsg


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: December 2, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.