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
| Sub kinasepanel()
Dim wordkinomeapp As Object
Dim data As Range
Dim i, kinase As Integer
Dim wrdDoc As Word.Document
Dim rond As Shape
Set wordkinomeapp = CreateObject("word.Application")
wordkinomeapp.Visible = False
Set wrdDoc = wordkinomeapp.Documents.Open("H:\kinome map 3.doc")
wrdDoc.Visible = False
' cycle through all kinase from panel in sheet 1
i = Application.CountA(Sheets("Sheet1").Range("A:A"))
MsgBox (i)
rond = wrdDoc.Shapes("oval 387")
For kinase = 2 To i
Selection.Copy
Selection.Paste
Selection.ShapeRange.IncrementTop Sheets("Sheet1").Range("B" & i).Value
Selection.ShapeRange.IncrementLeft Sheets("Sheet1").Range("C" & i).Value
Selection.ShapeRange.Fill.ForeColor.RGB = RGB(235, 247, 255)
Next kinase
End Sub |
Partager