vba code for a userform triggered by a button code example Example: Macro to open Userform Sub ShowUserForm() userform.show 'ShowUserForm End Sub