I know there is a way to get a code for a certein object from a text file, I just forgot where I saw that infomation. How can this be done?

Also: Is there a way to run 1 line of code from a textbox?
Ex:

VB Code:
  1. 'Textbox text:  Msgbox "Sup", vbOkonly
  2. Private Sub Command1_Click()
  3.        'runcode from textbox"
  4. End Sub