View Single Post
  #2 (permalink)  
Vecchio 09-13-2007, 11:06 AM
Andrew Andrew non è in linea
Junior Member
 
Registrato dal: Sep 2007
Messaggi: 4
predefinito

Questa è la macro che fa per te:

codice:
Sub TestMacro()
    Dim objClip As DataObject
'   Microsoft Forms 2.0 Object Library
'   needs to be selected as a Reference (on the VBA Tools menu)
    Dim strTmp As String
    Set objClip = New DataObject
    strTmp = Replace(ActiveCell.Value, Chr(10), vbCrLf)
    objClip.SetText strTmp
    objClip.PutInClipboard
    Set objClip = Nothing
End Sub
Ciao
Rispondi quotando