1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| Function Get_presse_papier() As String
Get_presse_papier = CreateObject("htmlfile").parentwindow.clipboardData.GetData("TEXT")
End Function
'
Function presse_papier(argmt)
CreateObject("htmlfile").parentwindow.clipboardData.setData "Text", argmt
End Function
'
Function Vide_presse_papier()
CreateObject("htmlfile").parentwindow.clipboardData.setData "Text", ""
End Function
'copy dans le clipboard .......TESTER LECTURE APRES CA !!!!
S
Sub enregistrement_dans_clipboard_par_copie_de_cellule()
Range("A1").Copy
End Sub
'inscription par vba dans le clipboard
'
Sub enregistrement_dans_clipboard_par_injection_vba()
presse_papier "toto"
End Sub
'
Sub vide_le_clipboard()
Vide_presse_papier
End Sub
'lecture du clibborad
Sub lecture()
Dim texte$
texte = Get_presse_papier
MsgBox texte
End Sub |
Partager