1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| Function déplacer_info_deb()
Dim a As Long, b As Long, c As Long
Workbooks("analyses_col.xls").Worksheets(1).Activate
texte_à_chercher = "Informations importantes"
Call recup_valeur
Range("A" & recup_ligne & ":B" & recup_ligne + 12).Select
selection.Cut
Range("F10:G22").Select
ActiveSheet.Paste
ActiveSheet.Shapes.Range(Array("Label1", "Label2", "Label3", "TextBox1" _
, "OptionButton1", "OptionButton2", "OptionButton3", "OptionButton4" _
, "OptionButton5", "OptionButton6", "OptionButton7", "Label4" _
, "Label5", "Label6", "TextBox2", "TextBox3")).Select
ActiveSheet.Shapes.Range(Array("Label7", "TextBox4", "Label8", "Label9" _
, "TextBox5")).Select False
a = ActiveSheet.Range("F10").Left
b = ActiveSheet.Range("F11").Top
c = ActiveSheet.Shapes("TextBox5").Top
b = b - c + 3
selection.ShapeRange.IncrementLeft (a)
selection.ShapeRange.IncrementTop (b)
End Function |
Partager