I want to check if a range (cells in a row column *) is free with C #. I can go through the cells, but any quick and fast way? Any method to get the range from the selected / active cell and the number of rows and column?
I believe that Excel.WorksheetFunction.CountA works not only with sheets, but with any Range argument:
Use CountA to count the number of cells containing data in a range or array.A value is any type of information, including error values ββand empty text (""). The value does not contain empty cells.If the argument is an array or reference, only the values ββin this array or reference are used. Empty cells and text values ββin the array or reference are ignored.
Use CountA to count the number of cells containing data in a range or array.
A value is any type of information, including error values ββand empty text (""). The value does not contain empty cells.
If the argument is an array or reference, only the values ββin this array or reference are used. Empty cells and text values ββin the array or reference are ignored.
Source: https://habr.com/ru/post/893744/More articles:Does LINQ To SQL C # eliminate any possibility of SQL injection attack? - c #Take some data, return a pure piecewise function - mathAbout C # Delegate Creation Performance - reflectionHow to gracefully check if a raw resource exists? - javaRegex To find missing words - regexASP.NET MVC: partially knows if it is being requested from another page? - asp.net-mvcHow to use System.ComponentModel.DataAnnotations in a WPF or Winforms application - c #difference between reference_many and has_many in mongoid - referenceHow to use ejabberd in android? - androidProblem installing HBase / Zookeeper - installationAll Articles