Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15505

difference between ! and . character in the syntax of the VBA identifieer

$
0
0
Hi there,
Greetings from Shank. Am new to the forum.

I am in the process of developing a VBA app. The thing is I don't know the difference between the following vb statements. They all behave the same way (i.e copy the contents the Left Text Box to the Right one. Can you tell me what the "!" exclamation mark does when compared to "." dot character. Can I use them Interchangeably.
'Userform1.bas
---------------
Private Sub CommandButton1_Click()

Me.TextBox2 = Me.TextBox1
Me!TextBox4 = Me!TextBox3
form.TextBox6 = form.TextBox5
form!TextBox8 = form!TextBox7


End Sub

Module1.bas
--------------`
Sub displayform()
Dim frm As New UserForm1
frm.Show

Unload frm
Set frm = Nothing

End Sub

Name:  New Bitmap Image.jpg
Views: 56
Size:  50.7 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 15505

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>