+ Reply to Thread
Results 1 to 4 of 4

Macro recorded to split cells - edit to allow for any cell to be clicked and separatd

  1. #1
    Registered User
    Join Date
    09-18-2008
    Location
    UK
    Posts
    4

    Macro recorded to split cells - edit to allow for any cell to be clicked and separatd

    Hi, I have recorded a macro attached:-
    How do I edit it so that I can click on any cell and it will use that cell and its contents?

    Any help is very much appreciated.
    Attached Files Attached Files
    Last edited by VBA Noob; 09-18-2008 at 12:36 PM.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    That code is way bloated, one of the cons of recording macros. What exactly are you trying to do? It may be easier to devise code from scratch than to try and decipher what the code is doing.

  3. #3
    Registered User
    Join Date
    09-18-2008
    Location
    UK
    Posts
    4
    I have a macro that outputs combinations of 3 numbers out of 6 numbers, which is 20 combinations in total, but it outputs all 20 numbers vertically in one cell, but I want to split each 3 numbers into separate cells. I have attached the macro that does this if this is easier than trying to do a macro to split the cell.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    To get this output:
    Please Login or Register  to view this content.
    Manually enter the first set of elements, and then in A3:C3, enter and copy down this array formula:

    = NextComboWF(A2:C2, 6, 3)

    .. which requires this function:
    Please Login or Register  to view this content.

+ 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