I have the below code on click of a button in a form. To go to read mode and do a selectall and copy.
If uidoc.EditMode = True Then
uidoc.EditMode = False
But every time it reaches uidoc.selectall it crashes. It works fine if I don't have any value in editable fields. Can somebody help.