5
Reply

converting a VBA code in C#

Aporvi Ji

Aporvi Ji

Jul 6 2016 2:37 AM
290
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)