+ Reply to Thread
Results 1 to 4 of 4

collect data easily

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2011
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    2

    collect data easily

    Thank you for the help in advance!

    I want to collect data from predefined ranges on several sheets.
    I collected the ranges to the first column, but since there are a lot (600),
    I want to program the date collection.

    So, in the first column I have
    'Sheet1!'A1:A2
    'Sheet2!'A2:A3

    Could someone help me with a program, that automatically lists the values of this ranges one by one in one single col?

    Manually, I would want to get the values as:
    'Sheet1!'A1
    'Sheet1!'A2
    'Sheet2!'A2
    'Sheet2!'A3

    Thank you in advance!

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: collect data easily

    So it it then Sheet3!A3:A4, Sheet 4!A4:A5 etc?

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    05-24-2011
    Location
    Budapest, Hungary
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: collect data easily

    Quote Originally Posted by Domski View Post
    So it it then Sheet3!A3:A4, Sheet 4!A4:A5 etc?

    Dom
    okay, a different sample:

    first range: Sheet1!A1:B2

    This is the way I would do it manually:

    Cells(1,1)=Sheet1!A1
    Cells(2,1)=Sheet1!A2
    Cells(3,1)=Sheet1!B1
    Cells(4,1)=Sheet1!B2

    The macro should read in the range address,
    and then list the values in a column one-by-one automatically.

  4. #4
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: collect data easily

    So you're pulling all the data from one sheet now and just incrementing the columns?

    Dom

+ Reply to Thread

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