Cообщество разработчиков на платформе Microsoft > Форумы > Visual Studio Tools for Office > Using VSTO to expand a C# array (1D or 2D) into Excel following a UDF call
Задайте вопросЗадайте вопрос
 

ОтвеченоUsing VSTO to expand a C# array (1D or 2D) into Excel following a UDF call

Ответы

  • 4 июля 2009 г. 10:18Cindy MeisterMVP, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    Hi Fayssal

    VSTO has absolutely nothing to do with UDF. It does not support UDF in any way. You'll find alternate resources in the forum's Please Read First message where you can ask questions not related to VSTO.

    FWIW, if your custom function returns an array and you want the array written to the selected set of cells, the user must press a certain keyboard combination (rather than Enter) to confirm entering an array. I think the combination is Ctrl+Enter (or maybe it's Shift+Enter - one of those, anyway). This will write the forumula with { braces } which indicates it's an array. And Excel will then take care of populating the cell selection with the array.

    There was a discussion about this in the forum, some time back. If you search UDF and array you should turn it up and find the details.
    Cindy Meister, VSTO/Word MVP

Все ответы