Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 783
Default WorksheetFunction

I have seen discussions of differences between

Application.[some worksheet function] and

Application.WorksheetFunction.[some worksheet function]

The main difference seems to relate to the handling of errors that are
thrown, but until recently I have never seen an instance in which the
two forms require different treatment of the parameters of the function.

Either Application.WorksheetFunction.Index(someRange, 0, 2) or
Application.Index(someRange, 0, 2) will return the second column of
someRange.

Application.Index(someRange, , 2) will also return that second column but
Application.WorksheetFunction.Index(someRange, , 2) will throw an
Argument not optional compile error message.

Are there other such differences?

Alan Beban
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
Using WorksheetFunction.Max() Dave Excel Programming 4 October 14th 07 06:12 AM
WorkSheetFunction.CountIf & WorkSheetFunction.SumIf with 2 conditions? Etien[_2_] Excel Programming 3 January 13th 04 04:07 PM
WorksheetFunction Mike Fogleman Excel Programming 2 January 1st 04 11:17 PM
WorksheetFunction Stuart[_10_] Excel Programming 3 November 13th 03 12:33 AM
worksheetfunction devnext Excel Programming 1 October 29th 03 12:48 PM


All times are GMT +1. The time now is 10:48 PM.

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

About Us

"It's about Microsoft Excel"