VBA Subs and Functions with Arrays

VBA Subs and Functions with Arrays

LearnChemE

11 лет назад

51,680 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Pernambuco Meu País Oficial
Pernambuco Meu País Oficial - 19.12.2021 06:51

Array bidirecional

Ответить
Finally Tech.
Finally Tech. - 04.01.2020 11:23

more easy code and work for any number of rows you enter data..


Sub sumofnumbers()
Dim i As Integer
Dim counter As Integer
Dim sum As Integer
counter = Range("A1", Range("A1").End(xlDown)).Rows.Count

For i = 1 To counter

sum = Cells(i, 1).Value + sum

Next i

MsgBox "Sum of all numbers is" & " " & sum

End Sub

Ответить
Arulmozhi Arumugham
Arulmozhi Arumugham - 15.11.2019 02:58

Poor method of explaining

Ответить
Yanbo Wang
Yanbo Wang - 20.07.2019 01:28

Thank you so much!!!!

Ответить
Krohn - Education
Krohn - Education - 15.01.2018 18:04

Why do "Option Base 1"? Why not leave it as default of 0?

Ответить
Raghav garg
Raghav garg - 10.01.2015 13:02

Sir , I am learning VBA by myself , I just wanted do know how much VBA is used in current industry . Should I stick to leaning VBA or concentrate more on other programming languages . Which are the industries where VBA is maximum used ?

Ответить