+ Reply to Thread
Results 1 to 4 of 4

VBA using for-next loop to produce following output

  1. #1
    Registered User
    Join Date
    09-22-2016
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    1

    VBA using for-next loop to produce following output

    A b c d e
    1 1 2 3
    2 4 5 6
    3 7 8 9
    4 10 11 12
    5 13 14 15


    a b c d
    1 4
    2 2
    3 1 5
    4 3
    5 6

    a b c d
    1 1
    2 2 3
    3 4
    4

    a b c d
    1 3 4
    2 1 2
    3
    4

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: VBA using for-next loop to produce following output

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: VBA using for-next loop to produce following output

    Please Login or Register  to view this content.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: VBA using for-next loop to produce following output

    @daffodil,

    Unfortunately, pinkalpaca's post did not come out formatted correctly, and as a result your provided codes don't yield the desired results. Here are pinkalpaca's sequences formatted correctly:
    Please Login or Register  to view this content.

    @pinkalpaca,

    Why do you need this? I don't see any reason you would need a macro for this because you would just create the pattern you want by hand, especially since the numbering seems to be somewhat random and dependent on the sequence you want.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hierachy structured nested loop (next row) to produce a value
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-30-2016, 08:34 AM
  2. Output per hour to time to produce 1000
    By goldieds in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2015, 06:23 AM
  3. [SOLVED] Copy Specific Cells and produce new output sheet
    By Dbeethekidd in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-13-2014, 11:41 AM
  4. Macro to produce output of dates that land in next 7 days
    By Adivohra in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2014, 11:39 PM
  5. [SOLVED] Extract specific data from a report and re-produce cleaner output
    By SVTF in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-22-2013, 11:59 PM
  6. [SOLVED] Multiple Criteria to produce one output (Match and Vlookup)
    By aglopez08 in forum Excel General
    Replies: 2
    Last Post: 08-21-2012, 04:59 PM
  7. Do I need a control loop to produce worksheet?
    By QuickLearner in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2006, 06:30 AM

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