I think you're looking for the If
operator:
With commandSQL
.Connection = connection
.CommandText = "spAddCSVDataLine" 'Stored procedure here
.CommandType = CommandType.StoredProcedure
.Parameters.AddWithValue("Name", If(IsDBNull(ds.Tables("dataExcel").Rows(j)("Name")), "", Trim(ds.Tables("dataExcel").Rows(j)("Name"))))
End With