I made a macro that computes the STDEV of a selection and puts it in the status bar, and so is called whenever the selection is changed. However, it has the unintended effect of preventing me from pasting values anywhere when I copy a range. I can copy, but then when I click somewhere else to paste the paste button becomes greyed out and I lose the selection. 
How do I get my paste back? Preferably by changing the macro but not by adding new ones. 

Here is the code: 

```
Public st As Double
Public rng as Range

Sub stdev()
On Error Resume Next
st = Application.WorksheetFunction.stdev(rng)
If Err.Number <> 0 then
    st = 0
End If
Application.DisplayStatusBar = True
Application.StatusBar = "Stdev: " & st
End Sub

```

Then: 

```
Private Sub Worksheet_SelectionChange(ByVal Target as Range)
Set rng = Target
Call stdev
End Sub

```