Thread: User Form
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
tony tony is offline
external usenet poster
 
Posts: 313
Default User Form

Someone suggested this line of code to be able to use a variable to open a
particular user form but I get a run time error 13 - Type Mismatch. Did I
miss something when putting the code in?? Thanks!

VBA.UserForms("ModConfig" & NT1s).Show

I have several forms with the names only being different by the number on
the end...modconfig1, modconfig2, modconfig3 and so on. Depending on what the
user inputs for the value of NT1s I would like it to open that user form.