Disappearing Toggle Button macro
<p>I have simple Excel macro, for ToggleButton:</p>

<pre><code>Private Sub ToggleButton1_Click()
Dim xAddress As String
xAddress = "L:R"
If ToggleButton1.Value Then
    Application.ActiveSheet.Columns(xAddress).Hidden = True
Else
    Application.ActiveSheet.Columns(xAddress).Hidden = False
End If
End Sub
</code></pre>

<p>When I upload this to OneDrive and download, macro disappear.</p>

<p><a href="https://i.stack.imgur.com/PBqyG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PBqyG.png" alt="enter image description here"></a></p>

<p>I have just ToggleButton definition, so it doesn't work.</p>

<p>How I can store this macro permanently?</p>