+ Reply to Thread
Results 1 to 4 of 4

Reorganize cells

  1. #1
    Registered User
    Join Date
    01-03-2010
    Location
    Lyon, France
    MS-Off Ver
    Excel 2003
    Posts
    2

    Reorganize cells

    Hi everybody!!

    I am begining to create macros with excel (version 2003), and I really like this forum for all the help it brings me!!

    But here I have a problem for which I didn't find any solution yet, concerning reorganization of cells in an excel sheet. To sum up, I created a macro that is able to reorganize a 2*5 table (E4:F8) into a row (H4:Q4), but I would like to apply this macro to any 2*5 table that I select (not only E4:F8, but also E9:F13 for example...) because I have a sheet with hundreds of these 2*5 tables...

    Here is the script of my macro, how can I adapt it so that it works on cells I select manually and not only on the E4:F8 cells?

    Please Login or Register  to view this content.

    I join an excel file as an example.


    Thanks for your help,
    Olivier.
    Attached Files Attached Files
    Last edited by Esturgeon; 01-03-2010 at 05:21 PM. Reason: Code tags required when showing VBA code

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,996

    Re: Reorganizing cells

    Look here:
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Reorganizing cells

    If it is just the 5x2 you select then
    Please Login or Register  to view this content.
    Last edited by rwgrietveld; 01-03-2010 at 04:38 PM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    01-03-2010
    Location
    Lyon, France
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Reorganizing cells

    Both of your solution works very well!!
    It will really help me!

    Thanks a lot!

+ 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