Results 1 to 8 of 8

Thread: [RESOLVED] Add Table (rows) in a loop

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    88

    Resolved [RESOLVED] Add Table (rows) in a loop

    I'm collecting data on a form (array) and I want to add this data to the document as a table.

    How would I go about doing that?

    I'm using word 2003
    Last edited by SammyWaslow; Apr 24th, 2006 at 08:04 AM.
    Using Visual Studio 2005 / Framework 2.0

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Add Table (rows) in a loop

    Have a look at my post here for an example of how to build a table dynamically based on an array.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    88

    Re: Add Table (rows) in a loop

    Thanks!
    Using Visual Studio 2005 / Framework 2.0

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    88

    Re: Add Table (rows) in a loop

    Bummer! Am I crazy or doesn't VBa support multiple dimension arrays?
    I need 2 use a 2 dimensional array of type string.

    Is this possible ?
    Using Visual Studio 2005 / Framework 2.0

  5. #5
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Add Table (rows) in a loop

    You're crazy

    VBA does support multidimensional arrays.
    VB Code:
    1. Dim asMultiDim(0 To 9, 0 To 99) As String
    Last edited by DKenny; Apr 25th, 2006 at 02:11 PM.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    88

    Re: Add Table (rows) in a loop

    Thanks,

    though I started working on a solution using two single dimension arrays ...
    Using Visual Studio 2005 / Framework 2.0

  7. #7
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Add Table (rows) in a loop

    Sammy
    Don't forget to mark this thread as resolved if your question has been answered.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    88

    Re: Add Table (rows) in a loop

    Yes, I will, sorry

    As a comment:
    What's vba clumsy compared to .net. Ugh!
    Using Visual Studio 2005 / Framework 2.0

Posting Permissions

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



Click Here to Expand Forum to Full Width