Skip to main content

Backspace-Delete

Command Description

Perform a backspace delete operation on the content currently selected in a Word document

Command Prototype

Word.Backspace(objWord)

Parameter Description

ParameterRequiredTypeDefaultDescription
objWordTrueexpressionobjWordWord document object

Demo

/************************************Backspace delete************ **************************** 
Input parameters:
objWord--Word document object
*********************************************************************************/
Dim objWord
objWord = Word.Open('''C:\Users\Administrator\Desktop\Standardization Implementation Notes.docx''',"xw4131221","",true)
Word.SetTextPosition(objWord,"must record defect",0)
Word.Backspace(objWord)