Question1: How to access windows form and its controls on VSTO excel using C#?
Question2: On Execution of VSTO Excel workbook application, I want total no. of active columns when the user paste the data. Suppose User may paste 5 column data or 10 column data. Through code i want to figure out the total no. of columns(Also Total no. of rows if possible) once the user pastes/loads the tabular data. How to get indefinite range value for cells on execution of VSTO excel when data is pasted on the same.
Please help me with code for these two questions.