Skip to content

Instantly share code, notes, and snippets.

@ScottDeLuzio
Created February 18, 2016 20:23
Show Gist options
  • Save ScottDeLuzio/c6704b48b8a4e6b2c61d to your computer and use it in GitHub Desktop.
Save ScottDeLuzio/c6704b48b8a4e6b2c61d to your computer and use it in GitHub Desktop.
Software Licensing for Excel Add-In Populate UserForm
Private Sub userform_initialize()
With ThisWorkbook.Worksheets("Sheet1").Range("A1")
license.Value = .Cells(1, 1).Value
Label2.Caption = "Your license key is " & .Cells(3, 1).Value & " and has " & .Cells(4, 1).Value & " activations remaining."
End With
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment