Skip to content

Instantly share code, notes, and snippets.

@harsha547
Created June 7, 2017 18:58
Show Gist options
  • Save harsha547/adec39036046886c80f7f6e07651b8fe to your computer and use it in GitHub Desktop.
Save harsha547/adec39036046886c80f7f6e07651b8fe to your computer and use it in GitHub Desktop.
Sub Range()
Dim arr As Variant
arr = sharr.Range("A2:D11").Value
Dim i As Long , j As Long
For i = LBound(arr,1) To UBound(arr,1)
For j = LBound(arr,2) To UBound(arr,2)
arr(i,j) = arr(i,j) * 10
Next j
Next i
sharr.Range("A2:D11").Offset(0,6).Value = arr
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment