![]() |
#4
|
|||
|
|||
![]()
Try this code then... (you need to set a reference to the Microsoft Forms 2.0 Object Library... To add a reference to your VBA project, go to the Tools menu in the VBA editor and choose the References item. In the dialog that appears, scroll down the list until you find the appropriate library )
Code:
Sub paste() Dim DataObj As New MSForms.DataObject Dim S, T As String DataObj.GetFromClipboard T = ActiveCell.Value S = DataObj.GetText ActiveCell.Value = T & " " & S End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to Insert a Clear, Blank page without Lines and Numbers in a Pleading Document | Dirigo | Word | 5 | 09-30-2011 08:08 AM |
![]() |
OTPM | Excel | 11 | 05-23-2011 11:18 AM |
![]() |
VinceO | Excel | 1 | 05-09-2011 06:38 AM |
![]() |
tareq | Excel | 12 | 09-29-2010 02:12 PM |
![]() |
rec | Outlook | 2 | 06-14-2010 09:47 AM |