How to get cell link from range object in Excel using VB.net?

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!!

+2
source share
2 answers

With cell.Address(false, false) .

+2
source

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.

+1
source

Source: https://habr.com/ru/post/1306688/


All Articles