stephicohu
New Member
- Joined
- Jan 27, 2023
- Messages
- 26
- Office Version
- 365
- Platform
- MacOS
What I am doing is to fill down the equation on AG3. What I want to do is to fill down 4 rows to AG7. I wan to use variables because I have many equations in different columns to down fill. The code is below:
Sub Test2()
Dim Sumnum As Integer
Dim Num1 As Integer
Dim BottomNum As Integer
Sumnum = 0
Num1 = 0
BottomNum = 0
Sumnum = 33
Num1 = 3
BottomNum = 7
Range(Cells(Sumnum, 3), Cells(Sumnum, 7)).FillDown
Range("V25").Select
End Sub
What am I doing wrong?
Thanks....
Stephanie
Sub Test2()
Dim Sumnum As Integer
Dim Num1 As Integer
Dim BottomNum As Integer
Sumnum = 0
Num1 = 0
BottomNum = 0
Sumnum = 33
Num1 = 3
BottomNum = 7
Range(Cells(Sumnum, 3), Cells(Sumnum, 7)).FillDown
Range("V25").Select
End Sub
What am I doing wrong?
Thanks....
Stephanie