+ Reply to Thread
Results 1 to 3 of 3

Ask manipulate array in vba

  1. #1
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Ask manipulate array in vba

    I have coding to random unique
    Use array but i not understand with little code
    This is coding
    Please Login or Register  to view this content.
    I dont understand with this line code
    Y=a(i,1) 'y = 1,2,3,4,5,6,7...15
    a(i,1) =a(x,1) 'a(i,1)=random unique
    I want somebody to explain me line this coding,

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,575

    Re: Ask manipulate array in vba

    It is swapping the value between a(i, 1) and a(x, 1).

    a = [{1;2;3;4;5;6;7;8;9;10;11;12;13;14;15}] all unique

    So, swapping the contents inside the array will randomly re-locate each value within the array.

  3. #3
    Forum Expert
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,398

    Re: Ask manipulate array in vba

    Thank jindon for your explain
    y = a(i,1) >> y = {1,2,3 ...15}
    a(i,1) = a(x,1) >>a(i,1)= a(1,1)..until a(15,1) .value = random ( 1 to 15)
    a(x,1) = y >> random a(row) = [1,2,3 dst until 15]
    If i am can to learn proses with debug.print

+ 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. help manipulate data
    By nkuebelbeck in forum Excel General
    Replies: 6
    Last Post: 07-09-2015, 10:05 AM
  2. Help manipulate web page via vba
    By rarementality in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2014, 10:58 AM
  3. multiple string dates in cell, to array, and manipulate single elements
    By willara23 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2013, 07:48 PM
  4. Can someone help me to manipulate these data?
    By hunnybunch in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-07-2013, 07:12 PM
  5. Replies: 7
    Last Post: 06-29-2012, 08:53 PM
  6. manipulate data
    By sjl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-03-2006, 09:00 AM
  7. How to manipulate a row with a certain value
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-24-2006, 10:10 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