+ Reply to Thread
Results 1 to 3 of 3

VBA list question

  1. #1
    Registered User
    Join Date
    03-19-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    VBA list question

    Hey,

    I was wondering if someone could help, I have the following VBA and was wondering if anyone could help me add a separator between the results i.e. "+" or "|"

    Dim i As Long
    Dim j As Long
    Dim k As Long
    Dim l As Long
    For i = 1 To 26
    For j = 1 To 26
    For k = 1 To 26
    l = l + 1
    Range("D" & l) = Range("A" & i) & _
    Range("B" & j) & _
    Range("C" & k)
    Next 'k
    Next 'j
    Next 'i

    Any help would be greatly appreciated.

    THanks,

    Jon

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,295

    Re: VBA list question

    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-19-2020
    Location
    London
    MS-Off Ver
    2016
    Posts
    4

    Re: VBA list question

    Quote Originally Posted by torachan View Post
    Please Login or Register  to view this content.
    Thanks so much torachan, that is amazing.

    I don't know if I need to open another thread, but I wanted to know how I could get all possible combinations of 2 columns and 3 columns, not sure if this is possible, I was trialing adding a blank row at the end and extending the range out to 1 - 27?

+ 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. Looking down a list question
    By maxthebear in forum Excel General
    Replies: 8
    Last Post: 08-12-2010, 10:01 PM
  2. List question
    By flickerstick29 in forum Excel General
    Replies: 5
    Last Post: 12-14-2009, 03:20 PM
  3. List Question
    By trader2 in forum Excel General
    Replies: 5
    Last Post: 01-29-2009, 04:23 AM
  4. List Question
    By cjsec9 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2008, 01:23 PM
  5. List Box question
    By ballack in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2007, 07:22 AM
  6. list question
    By magphoto in forum Excel General
    Replies: 1
    Last Post: 12-02-2006, 04:36 AM
  7. List question
    By computerguy in forum Excel General
    Replies: 3
    Last Post: 06-10-2006, 05:55 PM
  8. [SOLVED] List Box Question
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-25-2005, 03:05 PM

Tags for this Thread

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