I use the following code in Excel 2010
however, the Call shadow will not run the shadow macro in excel 2007. It works fine in 2010. I'm stumped.
Code:
Private Sub CommandButton1_Click()
Set n = ActiveSheet.Pictures.Paste
With Range("f46")
t = .Top
l = .Left
On Error Resume Next
End With
With n
.Top = t
.Left = l
.ShapeRange.LockAspectRatio = msoFalse
.Width = 424
.Height = 600
Application.ScreenUpdating = False
Application.CutCopyMode = False
On Error Resume Next
End With
ActiveSheet.Pictures.Select
Call shadow
Application.ScreenUpdating = False
Range("b44:q44") = "Correlation To Offset"
On Error Resume Next
End Sub
however, the Call shadow will not run the shadow macro in excel 2007. It works fine in 2010. I'm stumped.