A sub does functions but you can't input objects when in use i.e.
Code:
Public Sub Stuff()
Text1.Text = "Some stuff."
End Sub
with functions:
Code:
Public Function Stuff(TxtBox As TextBox, Txt As String)
TxtBox.Text = Txt
End Function

then in a command button put:

Stuff Text1, "Some Stuff."
here it takes Text1.Text = "Some Stuff."
Private is for the Dimmed object or sub/function etc. so it can only be used by that module/form etc.
Public is the oppisite.


------------------
DiGiTaIErRoR
VB, QBasic, Iptscrae, HTML
Quote: There are no stupid questions, just stupid people.