Hey Guys,

I Have This Code For My Indent
VB Code:
  1. Private Sub Image13_Click()
  2. Frame2.Visible = True
  3. End Sub

^^^^Above Is The Code Which Shows The Frame Called Frame 2 Which Has A Text Box(Called text1) And A Button (Called Command2),

VVVV Below Is The Code For The Frame

VB Code:
  1. Private Sub Command2_Click()
  2. Dim indentamount As Integer
  3. indentamount = Text1.Text
  4. If indentamount >= 9000 Then
  5. MsgBox ("Number Must Be Under 9000") And ""
  6. End If
  7. RichTextBox1.SelIndent = indentamount
  8. Frame2.Visible = False
  9. End Sub

The Above isn't Right, because What it Should Do Is Make It So The User Can Choose The Indent Size.

and if the number inputted is MORE than 9000 it displays a MsgBox Saying "Number Must Be Under 9000" And Reset The Textbox but i can't get it to work

Can You help?