I have:
Dim cell As Excel.Range = sheet.Range("A2") Console.WriteLine("Cell references to = " + ????? )
What should I replace ????? to get A2 printed in its place?
Please, help!!
With cell.Address(false, false) .
cell.Address(false, false)
You can use the Address property for the Range object, but you will have to remove the "$" from it, since it returns an address in the format of "$ A $ 2".
Hope this helps.
Source: https://habr.com/ru/post/1306688/More articles:Mobile Phone Detection - browserGet cell value in Excel from range - vb.netThe similarity between the rows - SQL Server 2005 - sqlHow to use java to connect to local mysql? - javaHow to set my implementation of IServiceLocator as ServiceLocator.Current? - .netHow to split a line to another line? - c #Cyclic link error when outputting LINQ to SQL objects with relationships as JSON in an ASP.NET MVC 2 web application - genericsHow to display DateTime with selected parts of a date, but in the order of FormatProvider? - datetimeHow to add a view on top of UIPopoverController - iphoneDynamically add controls when a button is clicked in asp.net mvc - asp.net-mvcAll Articles