+ Reply to Thread
Results 1 to 2 of 2

Copy range of data into the table or list datatype

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    mumbai
    MS-Off Ver
    Excel 2007
    Posts
    1

    Copy range of data into the table or list datatype

    Hi guys,
    I want to copy the range of data from one sheet and store it into some temporary table or list data type... and then i want to add values of one of its column.....

    for example...

    Dim myTempRange as Range
    Dim mySum as Double
    myTempRange = Range("A:D")
    mySum=sum(myTempRange.columns(4))

  2. #2
    Valued Forum Contributor StevenM's Avatar
    Join Date
    03-23-2008
    Location
    New Lenox, IL USA
    MS-Off Ver
    2007
    Posts
    910

    Re: Copy range of data into the table or list datatype

    It sounds like what you need is a variant, such as:


    Please Login or Register  to view this content.
    You can also do the opposite: Range("A1:D" & nLastRow) = vArray
    As long as the region is the same size.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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