开发者

How do I find which cells are selected on an Excel worksheet?

I need to be able to use C# and Excel interop to determine which cells are 开发者_JS百科selected in a workbook/worksheet. It would be nice if there were something like this defined in Excel:

Excel.Range Worksheet.GetSelectedCells();


Use Application.Selection which will return a Range.


I guess you can use the ActiveCell property of the Excel Application object. It would return you a Range object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜