Sub InsertShape()
Dim Rng As Range
Dim Prange As Range
Dim xsht As Worksheet, ysht As Worksheet
Set xsht = Sheets("Sheet1")
Set ysht = Sheets("Sheet2")
ysht.Range("A2:Z" & Rows.Count).Clear
Set Prange = ysht.Range("A2")
Application.DisplayAlerts = False
On Error Resume Next
Do
Set Rng = Application.InputBox("Please Select Range of 5 Rows For Ticker", Type:=8)
If Not Rng Is Nothing Then
If Rng.Count = 5 Then
Rng.Copy
Prange.PasteSpecial xlPasteValues
Application.CutCopyMode = False
Exit Do
ElseIf Rng.Count < 5 Then
MsgBox "You must select 5 rows.", vbOKOnly
End If
ElseIf Rng Is Nothing Then
ysht.Cells.ClearContents
Exit Sub
End If
Loop
Set Rng = Nothing
Do
Set Rng = Application.InputBox("Please Select Range of 5 Rows For CUSIPS", Type:=8)
If Not Rng Is Nothing Then
If Rng.Count = 5 Then
Rng.Copy
Prange.Offset(0, 1).PasteSpecial xlPasteValues
Application.CutCopyMode = False
Exit Do
ElseIf Rng.Count < 5 Then
MsgBox "You must select 5 rows.", vbOKOnly
End If
ElseIf Rng Is Nothing Then
ysht.Cells.ClearContents
Exit Sub
End If
Loop
On Error GoTo 0
Application.DisplayAlerts = True
End Sub