I want to determine if enter(return) key pressed when someone wrote into a paragraph shape.
I do not want normal line-break determination.
How can I do that using macro.
Thanks in advance.
I think you have to use API-routines to intercept key presses. Are you familiar with API procedures and hooks?
Alternatively, in paragraph shape you can simply replace line break characters (CR/LF) with any other character
No, I am not familiar with API.
How can I replace line break character?
something like this:
Private Sub ChangeCRLF()
Dim s As Shape, a As String
Set s = ActiveShape
If s.Type = cdrTextShape Then
a = Replace(s.Text.Story.Text, vbCr, "-") 'replace CRLF by "-"
s.Text.Story.Text = a
Thank you very much.