Cut and paste using richtext? 
Author Message
 Cut and paste using richtext?

Hi,
I would like to be able to cut and paste with a richtext control. Both Getz
and an article in the KB describe how to copy and paste info from one
control into same control of another record but neither explain blocking
selected text in a control and pasting it both in same control or in other
controls. Can this not be done? Any suggestions are appreciated.
Alan Schwartz



Wed, 25 Oct 2000 03:00:00 GMT  
 Cut and paste using richtext?

highlight the text

 .. use shift + delete to cut and shift + insert to paste

for copy and paste .. use ctrl + c to copy and ctrl + v to paste

On Sat, 9 May 1998 09:36:09 -0400, "Alan Schwartz"

Quote:

>>Hi,
>>I would like to be able to cut and paste with a richtext control. Both Getz
>>and an article in the KB describe how to copy and paste info from one
>>control into same control of another record but neither explain blocking
>>selected text in a control and pasting it both in same control or in other
>>controls. Can this not be done? Any suggestions are appreciated.
>>Alan Schwartz

                            TRoN~!
                            CompuTec Data Systems


Thu, 26 Oct 2000 03:00:00 GMT  
 Cut and paste using richtext?

Aren't you talking about Control-C/Control-V?  If you want to do away with
the need to select the entire text before Control-C,  then you can use the
Form's KeyDown event to do all this. (Access 97)

'***************** Code Start **************
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Dim vShift As Variant
    vShift = (Shift And CTRL_MASK)
    On Error Resume Next
    If vShift And (KeyCode = 67) Then
        'Copy Record
        KeyCode = 0
        With Screen.ActiveControl
            .SelStart = 0
            .SelLength = Len(Screen.ActiveControl)
        End With
        DoCmd.RunCommand acCmdCopy
    ElseIf vShift And (KeyCode = 86) Then
        KeyCode = 0
        'Paste Record
        DoCmd.RunCommand acCmdPaste
    End If
End Sub
'***************** Code End **************

HTH
--
Dev Ashish (Just my $.001)
---------------
The Access Web ( http://home.att.net/~dashish )
---------------

:Hi,
:I would like to be able to cut and paste with a richtext control. Both Getz
:and an article in the KB describe how to copy and paste info from one
:control into same control of another record but neither explain blocking
:selected text in a control and pasting it both in same control or in other
:controls. Can this not be done? Any suggestions are appreciated.
:Alan Schwartz
:
:



Thu, 26 Oct 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Cut and paste using richtext?

2. RichText box control and Clipboard, cut, copy and paste

3. Using a Macro to Cut and Paste

4. Cutting and Pasting using Visual Basic 3.0 Pro

5. Cut/paste from a text file using FSO

6. Cut and paste code

7. Cut, Copy, Paste

8. How can I copy records like cut-n-paste

9. disabling cut/copy/paste

10. Handling cut and paste through VBa

11. Cut-n-Paste Excel snippet into Outlook 98...

12. disabling copy/paste/cut on shape shortcut menu

 

 
Powered by phpBB® Forum Software