[RESOLVED] Copy, Paste, Delete, Cut, Selct All
does anyone know what the code is for basic editing commands?
for example, let's say i have a string of text loaded in a variable called str, and i want to copy tht text and have it pasted to the clipboard so i can paste it where i want to somewhere else.
i tried copy.str, and str.copy, but of course that did not work.
Re: Copy, Paste, Delete, Cut, Selct All
Code:
'Cut
Clipboard.Clear
Clipboard.SetText Screen.ActiveControl.SelText
Screen.ActiveControl.SelText = vbNullString
'Copy
Clipboard.Clear
Clipboard.SetText Screen.ActiveControl.SelText, vbCFText
'Paste
Screen.ActiveControl.SelText = Clipboard.GetText()
'Delete
Screen.ActiveControl.SelText = vbNullString
Re: Copy, Paste, Delete, Cut, Selct All