+ Reply to Thread
Results 1 to 9 of 9

Modify macro to process multiple data

  1. #1
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Modify macro to process multiple data

    Hello,

    I am using the following macro which was created by user jindon. When I run the macro a pop-up window appears where I select the data range, and then another pop-up window where I select where I want to output the results. Is it possible for the macro to be modified so that, I can select a range of data then the output cell, then again select another range of data and its output cell, and again another range of data and the output cell and so on... Since I have tens of ranges of data in many multiple sheets, my aim is to be able to select all accordingly and leave excel processing during the night.

    This is the macro


    Please Login or Register  to view this content.

    Thank you,
    Sans

  2. #2
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: Modify macro to process multiple data

    You can use a collection:

    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Modify macro to process multiple data

    That's exactly what I needed, thank you very much wallyeye! Is the process of selecting data and the results unlimited, that is until I close the window? Thank you

  4. #4
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: Modify macro to process multiple data

    As far as I know, or at least you would have serious carpal tunnel by the time it ran out.

  5. #5
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Modify macro to process multiple data

    Excellent, thanks!

  6. #6
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Modify macro to process multiple data

    The above works great but I was wondering if it would also be posssible to select all the desired ranges in one sheet but when running the macro to process the same ranges over all sheets in the workbook. Thank you

  7. #7
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Modify macro to process multiple data

    With walleye's macro I can only select the ranges I'd like to process in one sheet at a time only. If anyone can help so I can select all ranges in one sheet but for the macro to run or process the same ranges over all sheets it would be a big time-saver. Thank you
    Last edited by sans; 05-15-2012 at 09:05 AM.

  8. #8
    Forum Contributor wallyeye's Avatar
    Join Date
    05-06-2011
    Location
    Arizona
    MS-Off Ver
    Office 2010, 2007
    Posts
    308

    Re: Modify macro to process multiple data

    You can tweak the code a bit:


    Please Login or Register  to view this content.
    I don't have a good way to test this, but it should get you close.

  9. #9
    Valued Forum Contributor sans's Avatar
    Join Date
    10-19-2011
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    550

    Re: Modify macro to process multiple data

    Thank you wallyeye. I'll give it a try!

+ 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