5
Answers

converting a VBA code in C#

Aporvi Ji

Aporvi Ji

8y
301
1
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)