How would I write the 3rd VB code in C#?. I can’t find anything on Google.
Imports XL = Microsoft.Office.Interop.Excel
Public Class LicenseRenewal
' The line below to C#
Private xlRangesForRenewal As New List(Of XL.Range)
Thanks in Advance and Happy Friday!
alexn was nearly there, but you either need a using alias directive:
Or you can just use the namespace without an alias, but adjust the usage accordingly: