Microsoft KB Archive/66875

Unable to Set the Scrap with Macro SET Command

PSS ID Number: Q66875 Article last modified on 11-02-1994

5.50 6.00

MS-DOS

= SUMMARY =

When style information resides in the scrap, you cannot place anything in the scrap with the macro SET instruction (for example, SET Scrap=“pile”).

You cannot set the scrap with the macro SET instruction until text is copied or deleted to the scrap, thereby replacing the style information that is currently residing there.

= MORE INFORMATION =

For example, create the following macro:

<>

If this macro is run after text is deleted or copied to the scrap, the word “pile” will appear in the scrap.

The Word “pile” will not appear in the scrap under the following example situation:

Open a style sheet, select one of the styles, and copy it to the scrap. Running the macro <> will no longer place the word “pile” into the scrap (the word “pile” will not appear in the curly brackets {} at the bottom of the Word screen).

For the macro to run correctly, return to the document and copy a space to the scrap. The macro will then function again as expected; the word “pile” will appear in the scrap.

Microsoft has confirmed this to be a problem in Word versions 5.5 and 6.0. We are researching this problem and will post new information here as it becomes available.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.