Hello
I am using this function in vba.
Problem is that when I execute this code an irrelevent sheet is activated and I have to switch back to the Journal sheet.With Sheets("Journal") .Range("C6").Value = Application.SumIf(.Range("E9:E1048576"), .Range("A2"), _ .Range("G9:G1048576")) - Application.SumIf(.Range("E9:E1048576"), .Range("A2"), _ .Range("H9:H1048576")) + Application.VLookup(.Range("A2"), Sheets("Chart_of_Accounts").Range("P3:T839"), 5, 0) End With
I am unable to configure it.
Bookmarks