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: 4
Default How to return special values from function? (Excel 2007 + VS 2008)

Hello developers,

I have a class like this one below, registered as COM server and added to
Add Ins.

[Guid("some guid here")]
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComVisible(true)]
public class Functions {
public object MyFunction() {
return ...
}
}

How do I return special values like #NAME!, #VALUE!, etc from my function?

Another question: how do I force Excel workbook to recalculate (F9) from my
VSTO Add In?

Thank you for any hints.

Tomasz

 
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
How do I move documents between Excel 2007 and 2008 Excel 2008 user Excel Discussion (Misc queries) 0 June 24th 09 06:06 PM
Function & paste special values backmara Excel Worksheet Functions 2 May 25th 09 07:03 PM
2007 Excel Paste Special Values Deletes Comment WolfgangPD Excel Discussion (Misc queries) 0 May 14th 08 09:02 PM
Excel 2003/2007 paste special values shows bizarre results TeeDub Excel Worksheet Functions 11 April 23rd 08 12:03 AM
Excel 2007 VB function call return value syntax question pop tufty Excel Programming 1 January 19th 08 04:50 PM


All times are GMT +1. The time now is 10:37 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"