Alex B.
Alex B.

Reputation: 3

Autocopy user selected text in MS word

I'm creating a ribbon button for MS Office Word that should copy the text that is selected by user when that button is clicked. The problem is that I couldn't find any reference on how to do this.

I have tried the SendKeys method to send a CTRL+C signal to the word app, but without success.

Any advise would be greatly appreciated.

Upvotes: 0

Views: 145

Answers (1)

Arthur Stankevich
Arthur Stankevich

Reputation: 382

ActiveDocument.ActiveWindow.Selection.Copy

Upvotes: 0

Related Questions