Results 1 to 20 of 56

Thread: How to scramble tables in word

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Microsoft Word MVP 2003-2009 VBAX Guru gmaxey's Avatar
    Joined
    Sep 2005
    Posts
    3,411
    Location
    mana,

    All very interesting and it seems to work, as the VBA Locals and Watch windows don't some most of the dictionary values it and without any commenting it is a little difficult to deduce what is actually going on. It seems oDicQue is redundant but it doesn't work without and I don't know why.
    Greg

    Visit my website: http://gregmaxey.com

  2. #2
    VBAX Expert
    Joined
    Sep 2016
    Posts
    788
    Location
    I'm sorry, it's too difficult to explain with my English proficiency.

    Quote Originally Posted by gmaxey View Post

    as the VBA Locals and Watch windows don't some most of the dictionary values it and without any commenting it is a little difficult to deduce what is actually going on.
    Please add 3 lines, and try again

        For Each k In oDicSec.keys
            Set oDicQue(k) = oDicSec(k).Clone
        Next
        
        Dim a, b        '<-- add
        a = oDicSec.items    '<-- add
        b = oDicQue.items    '<-- add

    ----
    5 lists that needs to be generated.

    1) oAllList: random list of all tables
    2) oDicSec: random lists per document section
    3) oDicQue: duplicae of oDicSec
    4) oDicOrder: priority list for choice of document section
    5)oDicExtract; list of choosen questions

    table number can be obtained from oDicSec according oDicOrder and oDicExtract.


    マナ
    Last edited by mana; 08-17-2019 at 09:37 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •