문제

I am working with an Excel sheet in a VSTO project.

I am using the event

Excel.Worksheet.Change(Range Target)

It gives a Target object of Excel.Range. I want to check whether this Target has a string or double value by using

Target.Value

How can I do this?

도움이 되었습니까?

해결책

hm...maybe try

object obj = Target.Value;
MessageBox.Show(obj.GetType().ToString());
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top