Results 1 to 3 of 3

VBA Help: To store results in Array.. Myarray1,myarray2,myarray3 etc...

Threaded View

vidyuthrajesh VBA Help: To store results in... 02-29-2012, 03:43 PM
tom1977 Re: VBA Help: To store... 02-29-2012, 03:58 PM
Kelshaer Re: VBA Help: To store... 02-29-2012, 04:02 PM
  1. #1
    Forum Contributor
    Join Date
    02-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    102

    VBA Help: To store results in Array.. Myarray1,myarray2,myarray3 etc...

    Given an example below.. would need to store results in a "array" .. Line 4 says "type mismatch"


    Sub arraytest()
    Dim myarray As Variant
    For i = 1 To 10
    myarray(i) = i
    Next
    For i = 1 To 10
    Range("B" & i).Value = myarray(i)
    Next
    End Sub
    Thanks.
    Last edited by vidyuthrajesh; 02-29-2012 at 04:19 PM. Reason: Yes.. it works !! Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1