I have a protected workbook with various cells unlocked for editing.
I would like to be able to add a macro to enable me to paste just text only into these cells when i choose to.
I have used the VBA code below but it does not work all the time.
If i select text from outside the workbook then the text will be pasted.![]()
Sub PasteText() ActiveSheet.PasteSpecial Format:="Text", Link:=False, _ DisplayAsIcon:=False End Sub
If i copy text from cells within the workbook i receive a Runtime error '1004':
PasteSpecial method of Worksheet class failed
Any ideas?
Bookmarks