Guest User

Guest User

  • Tech Writer
  • 20
  • 3.4k

converting a VBA code in C#

Jul 6 2016 2:37 AM
I would like to convert this VBA code in C#
Can anyone please help.
 
Dim Lrow,LColumn as Long 
Sheet1.Activate
If WorksheetFunction.CountA(Cells) > 0 Then
LRow = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
LColumn = Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByColumns, SearchDirection:=xlPrevious).Column
End If

Answers (5)