SAGAR VYAS
New Member
- Joined
- Dec 31, 2022
- Messages
- 2
- Office Version
- 2019
- Platform
- Windows
Sub SV()
Dim I, J, K, L As Integer
Sheet1.Activate
I = 1 'InputBox("enter value")
J = 1 'InputBox("enter value")
K = 2 'InputBox("enter value")
L = 2 'InputBox("enter value")
Range(Cells(I, J), Cells(K, L)).Copy
End Sub
Sub SAGAR()
Dim I, J, K, L As Integer
Sheet1.Activate
I = InputBox("enter value")
J = InputBox("enter value")
K = InputBox("enter value")
L = InputBox("enter value")
Range(Cells(I, J), Cells(K, L)).Copy
End Sub
FIRST VBA CODE RUN PROPERLY BUT IN SECOND I AM GETTING A ERROR "error application or object defined error"
Any one can help me.
THANKS
Dim I, J, K, L As Integer
Sheet1.Activate
I = 1 'InputBox("enter value")
J = 1 'InputBox("enter value")
K = 2 'InputBox("enter value")
L = 2 'InputBox("enter value")
Range(Cells(I, J), Cells(K, L)).Copy
End Sub
Sub SAGAR()
Dim I, J, K, L As Integer
Sheet1.Activate
I = InputBox("enter value")
J = InputBox("enter value")
K = InputBox("enter value")
L = InputBox("enter value")
Range(Cells(I, J), Cells(K, L)).Copy
End Sub
FIRST VBA CODE RUN PROPERLY BUT IN SECOND I AM GETTING A ERROR "error application or object defined error"
Any one can help me.
THANKS