Fayaz_2020
New member
- Local time
- Today, 18:46
- Joined
- Aug 24, 2020
- Messages
- 3
Hi Everyone
I am new to this group and new to VBA also. I just want to know how do I call a Module to a button.
I have Module as below.
Private Sub doublevalues()
Dim r As Long 'row number
Dim totalrows As Long 'total rows
totalrows = Application.CountA(Columns(1))
For r = 2 To totalrows
Cells(r, 1).Value = Cells(r, 1).Value * 2
Next r
End Sub
I want to get the result when I click a button.
How can I do it. Experts please help.
I am new to this group and new to VBA also. I just want to know how do I call a Module to a button.
I have Module as below.
Private Sub doublevalues()
Dim r As Long 'row number
Dim totalrows As Long 'total rows
totalrows = Application.CountA(Columns(1))
For r = 2 To totalrows
Cells(r, 1).Value = Cells(r, 1).Value * 2
Next r
End Sub
I want to get the result when I click a button.
How can I do it. Experts please help.