LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default User-defined Error Values

I would like to write a VBA function to be called by users
in an Excel formula that either returns a value or, if the
user has specified an impossible set of arguments, returns
an error message "#MESG?" similar to the built-in messages
"#NAME?" and "#VALUE?". It is important that the error be
propagated to dependent cells, and that the returned value
cause an error condition that can be properly identified by
SpecialCells(xlCellTypeFormulas,xlErrors).

Can anyone tell me how to do this?

Many thanks,

Phil
 
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
#NAME? Error With User Defined Functions Thomas M. Excel Worksheet Functions 7 January 5th 10 01:39 AM
vlookup, add parameter, on error return user defined value jims2994 Excel Worksheet Functions 0 July 7th 06 02:56 PM
#Name? Error in User Defined VB Function idgity Excel Worksheet Functions 2 August 30th 05 08:58 PM
User-defined data type; Error: Only User-defined types... tiger_PRM Excel Programming 1 July 18th 04 03:32 PM
error with user defined Martyn Excel Programming 7 April 16th 04 05:33 AM


All times are GMT +1. The time now is 05:08 PM.

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"