|
-
Jun 13th, 2007, 01:43 PM
#1
Thread Starter
Hyperactive Member
[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.
-
Jun 13th, 2007, 01:45 PM
#2
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
-
Jun 13th, 2007, 03:29 PM
#3
Thread Starter
Hyperactive Member
Re: Copy, Paste, Delete, Cut, Selct All
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|