2

I have :

Dim cell As Excel.Range = sheet.Range("A2")

Console.WriteLine("Cell references to = " + ????? )

What should I replace ????? with to get A2 printed in its place ?

Please help !!

Community
  • 1
  • 1
Yugal Jindle
  • 44,057
  • 43
  • 129
  • 197

2 Answers2

2

With cell.Address(false, false).

GSerg
  • 76,472
  • 17
  • 159
  • 346
1

You can use the Address property of the Range object, but you'll have to strip the '$' from it, as it returns the address in format "$A$2".

Hope this helps.

Luc Morin
  • 5,302
  • 20
  • 39