using a sheet in an excel user defined function

前端 未结 3 1833
夕颜
夕颜 2020-12-03 16:17

The VBA I\'m trying to write is fairly simple but Ive never written VBA and coming from the visual studio & C# world, this truly is hell!!

So I\'ll really be grat

3条回答
  •  死守一世寂寞
    2020-12-03 16:31

    Its usually best in cases like this to work within the Excel paradigm rather than convert to the C# way: Not sure why you need a UDF rather than the Excel formulae which your Finance guy has coded: why can't you/finance guy just code some fomulae to feed the inputs to the finance guy sheets, then write some more formulae to feed the results back? If you really need to do this with VBA then J Tolle has given you the basic architecture for a repetitive loop but I would recommend looking at doing it with formulae first.

提交回复
热议问题