copy worksheet to array

J

Joel

You can copy a Range into an array using the varue property like

myarray = Range("A1:F10").value
 
G

Gary Keramidas

this may be what you're looking for

Sub test()
Dim ws As Worksheet
Dim arr As Variant
Dim rng As Range
Set ws = Worksheets("Sheet1")
arr = ws.Range("A1:p1000")

End Sub
 
Top