ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   What does syntax '_Object' mean? (https://www.excelbanter.com/excel-programming/426754-what-does-syntax-_object-mean.html)

[email protected]

What does syntax '_Object' mean?
 
On line:

with Application.FUBAR

I get error:

Method 'FUBAR' of object '_Application' failed

1. Why doesn't the error respect the VBA statement and say "of object
'Application' failed"?

2. What does syntax '_Object' mean?

Thanks.

***

JLGWhiz[_2_]

What does syntax '_Object' mean?
 
In that statement, Application is the Object. VBA sees FUBAR as either a
property or a method of the Application object. In this case, the message
indicates it determined FUBAR to be a method and the method cannot execute,
ergo, the method FUBAR failed.


wrote in message
...
On line:

with Application.FUBAR

I get error:

Method 'FUBAR' of object '_Application' failed

1. Why doesn't the error respect the VBA statement and say "of object
'Application' failed"?

2. What does syntax '_Object' mean?

Thanks.

***




[email protected]

What does syntax '_Object' mean?
 
Thanks very much, JLGWhiz.

But that's not my question. The question is:

Why does the error message say "_Application", not "Application"?

What does the underline signify in the expression "_Object"?

***


All times are GMT +1. The time now is 02:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com