Results 1 to 20 of 49

Thread: VBA to split lines based on fields in table

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #38
    Hi OBP,

    I've moved the columns slightly to allow for the new field i wanted to add and as a result changes the col numb it was using - from what i understand in this VBA code X represents the installment number for the row being created multiplied by the number of columns i need it to go along the input table to grab the correct installment date/amount/description columns for that installment row.

    Given that

    RS(47) = Installment Amount
    RS(48)= Installment Posting Date
    RS(49) = Installment Description Final.

    x = count2 * 3
    rs(47) = rstable(47 + x).Value
    rs(48) = rstable(48 + x).Value
    rs(49) = rstable(49 + x).Value
    Why does it work for RS48 & 49 but for RS47 it doesn't take the values from rstable50,53,56? Or have i misunderstood how the code works?

    Thanks,
    Tom
    Last edited by Aussiebear; 02-18-2025 at 02:07 PM.

Posting Permissions

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