Hi Ron,
Originally Posted by
CaptRon
Mark,
I don't know how to go about insertion by code. Got a suggestion? I'll give it a try.
Ron
This seems less than ideal, and at minimum, you might want to look at the format that it pastes in to see what looks/prints best. Here's a shot though:
Option Explicit
Sub UpdateSignatures()
Application.ScreenUpdating = False
Call Shape_Action(shtACT33Front, 1)
Call Shape_Action(shtACT94, 1)
Call Shape_Action(shtSETUP, 3)
Call Shape_Action(shtACT33Front, 2, "J40")
Call Shape_Action(shtACT94, 2, "D43")
Application.ScreenUpdating = True
End Sub
Function Shape_Action(wks As Worksheet, Action As Long, Optional CellAddress As String)
Dim shp As Shape
If Action = 1 Or Action = 3 Then
For Each shp In wks.Shapes
If shp.Type = msoPicture And Action = 1 Then
shp.Delete
ElseIf shp.Type = msoPicture And Action = 3 Then
shp.CopyPicture xlScreen, xlPicture
Exit For
End If
Next
ElseIf Action = 2 Then
wks.Paste wks.Range(CellAddress), False
End If
End Function
See attached example. Since the sheets that the signature gets inserted onto are not getting added copies added (like ACT-34), I changed the codenames so that these could be used.
Hope its of some help,
Mark