Ascii |
=ERREUR(FAUX) |
=ENTRER("Choisissez"&CAR(13)&CAR(13)&"0126 = "&CAR(126)&CAR(13)&"0133 = "&CAR(133)&CAR(13)&"0149 = "&CAR(149)&CAR(13)&"0150 = "&CAR(150)&CAR(13)&"0216 = "&CAR(216);2;"ASCII";0 |
=FORMULE(CAR(B6)) |
=RETOUR() |
Je vois mal comment #2 pourrait faire référence à un fichier de #4...Vous parlez de caractères spéciaux2 ?
Sub Creer_Images()
Dim r As Range, s
Set r = [A3:A18] 'à adapter
For Each s In ActiveSheet.Shapes
If Not Intersect(s.TopLeftCell, r) Is Nothing Then s.Delete 'RAZ
Next
For Each r In r
r.CopyPicture
ActiveSheet.Paste
Selection.Left = r.Left
Selection.Top = r.Top
Selection.OnAction = "Copier"
Next
ActiveCell.Activate
End Sub
Sub Copier()
On Error Resume Next
ActiveCell = ActiveSheet.Shapes(Application.Caller).TopLeftCell
End Sub
Bonjour coline741, le forum,
Voyez le fichier joint et ces 2 macros :
La macro Copier est affectée aux images créées en colonne A.VB:Sub Creer_Images() Dim r As Range, s Set r = [A3:A18] 'à adapter For Each s In ActiveSheet.Shapes If Not Intersect(s.TopLeftCell, r) Is Nothing Then s.Delete 'RAZ Next For Each r In r r.CopyPicture ActiveSheet.Paste Selection.Left = r.Left Selection.Top = r.Top Selection.OnAction = "Copier" Next ActiveCell.Activate End Sub Sub Copier() On Error Resume Next ActiveCell = ActiveSheet.Shapes(Application.Caller).TopLeftCell End Sub
A+
Avec mes macros un UserForm est tout à fait inutile.apparait un tableau de 16 cases
Bonjour Job75Bonjour coline741, le forum,
Voyez le fichier joint et ces 2 macros :
La macro Copier est affectée aux images créées en colonne A.VB:Sub Creer_Images() Dim r As Range, s Set r = [A3:A18] 'à adapter For Each s In ActiveSheet.Shapes If Not Intersect(s.TopLeftCell, r) Is Nothing Then s.Delete 'RAZ Next For Each r In r r.CopyPicture ActiveSheet.Paste Selection.Left = r.Left Selection.Top = r.Top Selection.OnAction = "Copier" Next ActiveCell.Activate End Sub Sub Copier() On Error Resume Next ActiveCell = ActiveSheet.Shapes(Application.Caller).TopLeftCell End Sub
A+
Bonjour Lone-WolfBonjour Job75
Le Fil, le Forum.
Property Get PressePapier() As String
On Error Resume Next
With New MSForms.DataObject: .GetFromClipboard: PressePapier = .GetText: End With
If Err Then MsgBox "Pas de données récupérées", vbCritical, "PressePapier"
End Property
Property Let PressePapier(ByVal Z As String)
With New MSForms.DataObject: .SetText Z: .PutInClipboard: End With
UFmMsg.Dit Z, "Copié :"
End Property
Private Sub Label1_Click(): ActiveCell = Label1: End Sub
Private Sub Label2_Click(): ActiveCell = Label2: End Sub
Private Sub Label3_Click(): ActiveCell = Label3: End Sub
Private Sub Label4_Click(): ActiveCell = Label4: End Sub
Private Sub Label5_Click(): ActiveCell = Label5: End Sub
Private Sub Label6_Click(): ActiveCell = Label6: End Sub
Private Sub Label7_Click(): ActiveCell = Label7: End Sub
Private Sub Label8_Click(): ActiveCell = Label8: End Sub
Private Sub Label9_Click(): ActiveCell = Label9: End Sub
Private Sub Label10_Click(): ActiveCell = Label10: End Sub
Private Sub Label11_Click(): ActiveCell = Label11: End Sub
Private Sub Label12_Click(): ActiveCell = Label12: End Sub
Private Sub Label13_Click(): ActiveCell = Label13: End Sub
Private Sub Label14_Click(): ActiveCell = Label14: End Sub
Private Sub Label15_Click(): ActiveCell = Label15: End Sub
Private Sub Label16_Click(): ActiveCell = Label16: End Sub
Private Sub UserForm_Initialize()
Dim a, i%
a = Array(ChrW(&H2642), ChrW(&H2640), ChrW(&H266A), ChrW(&H266B), ChrW(&H263C), ChrW(&H25BA), ChrW(&H25C4), ChrW(&H25BC), _
ChrW(&H2660), ChrW(&H2663), ChrW(&H2665), ChrW(&H2666), ChrW(&H7E), ChrW(&HD8), ChrW(&H2013), ChrW(&H2026))
For i = 0 To UBound(a)
Me("Label" & i + 1) = a(i)
Next
End Sub