In vs direct call WorksheetFunction. Sum () error, in the great spirit show how vs implementation cell area summation of excel?
CodePudding user response:
What's wrong? Can the normal call ah,
Public Class Form1
Private Sub Button1_Click (ByVal sender As System. Object, ByVal e the As System. EventArgs) Handles for. Click Dim xlApp As Excel. Application=GetObject (, "Excel. Application") The Debug. Print (xlApp. WorksheetFunction. Sum (1, 2, 3)) End Sub