Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all:
I get a runtime 'type mismatch' on the last statement (i.e., r.Value = ). Any thoughts? Sub test() Dim r As Range Set r = ActiveSheet.Range("A1:A50000") Dim arr() As Long Dim i As Long ReDim arr(1 To 50000) For i = 1 To 50000 arr(i) = i Next i r.Value = Application.WorksheetFunction.Transpose(arr) End Sub Thanks, Tony |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying and pasting from a range | Excel Worksheet Functions | |||
VBA pasting array into cells | Excel Discussion (Misc queries) | |||
Pasting a portion of an array | Excel Programming | |||
Pasting a Range to Word | Excel Programming | |||
Help - Selecting and pasting into range | Excel Programming |