Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default 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.

***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,565
Default 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.

***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default 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"?

***
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
vba syntax Derrick Excel Discussion (Misc queries) 11 August 5th 09 08:37 PM
Syntax again for DA Dean[_8_] Excel Programming 9 December 15th 07 09:28 AM
Syntax help for if Dean[_8_] Excel Programming 2 November 1st 06 07:43 PM
help with syntax anny Excel Programming 2 February 5th 06 02:03 AM
SQL syntax Jeffiec Excel Programming 1 June 14th 05 05:47 PM


All times are GMT +1. The time now is 10:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"