Syntax
Spike
Remarks
Deletes the current selection and adds it to a built-in AutoText entry called the Spike. Items added to the Spike are separated by paragraph marks.
You can use the Spike to collect text and graphics from various locations in one or more documents and then insert them all together using InsertSpike, which clears the Spike. To insert the Spike contents without clearing the Spike, you use EditAutoText.
Example
This example opens RESEARCH.DOC, uses Spike to collect all the Heading 1 paragraphs, closes RESEARCH.DOC without saving changes, and then inserts the headings into the active document. On the Macintosh, substitute a path such as HD:DOCUMENTS:RSRCH PAPER.
FileOpen .Name = "C:\DOCS\RESEARCH.DOC", .ReadOnly = 1 EditFindClearFormatting EditFindStyle .Style = "Heading 1" EditFind .Find = "", .Direction = 0, .Format = 1 While EditFindFound() Spike ParaDown EditFind .Find = "", .Direction = 0, .Format = 1 Wend FileClose 2 'Close without saving InsertSpike 'Empty the Spike at insertion point
See Also
EditAutoText, EditCut, InsertSpike