mahmed1,
This is a semicolon ;
The two-dots is a colon :
A colon in VBA tells the compiler to treat anything after the colon as a new line of code.
For example:
Code:
For i = 1 To 10
MsgBox i
Next i
could instead be written as:
Code:
For i = 1 To 10: MsgBox i: Next i
This is not to be confused with colon equals :=
That indicates the assignment of a value or expression to a method's argument.
Using the above example, the msgbox Prompt argument is the variable i. I omitted the argument because its not necessary to explicitly state it. For the purposes of showing the difference between := and : though, the above example could be written as:
Code:
For i = 1 To 10: MsgBox Prompt:=i: Next i