vba - Visual Basic dot operator syntax--no object name -


In a previous life, I wrote some Visual Basic, and today I write an Excel Macro to resume those skills. need to. To help us with this Excel macro, while looking for the Internet in search of VBA instances, I came to this unusual syntax:

  set rFound = .Columns (1). Search (after: = "cat", after: = cell (1, 1), LookIn: = xlValues, LookAt: = _xlPart, SearchOrder: = xlByRows, search direction: = xlNext, MatchCase: = False _, SearchFormat : = False)  

Notes. Columns and. Seals - The dot operators do not have any object names left.

I remember using this syntax much earlier, but I do not remember details.

Question:

  • When is this legal?
  • Where can I get more information?

Thank you.

This is the one with the most statement in this way:

  With testObject. Height = 100 Text = "Hello, World". Information for VB  with  statement on more   for more with .ows = 20 End Col = 20 End 

< / Div>

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -