Consulting

Results 1 to 6 of 6

Thread: manage datas from a multilection rows

  1. #1
    VBAX Regular
    Joined
    Jul 2010
    Posts
    6
    Location

    manage datas from a multilection rows

    hi all
    i have a problem. I hope you could help me. I want to manage datas from a worksheet. I select different rows from a sheet and then I need to manage several columns of each rown filling an array with these selected cells. I`ll manage these datas calculating several formulas.
    It works perfect if the selected rows are continous but if I select them randomize p.e, row 1, and ro 3, and rows 9 to 20,..., all at the same time, I can`t manage them. Any help will be welcome. Cheers!!

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    I think we will only get somewhere if you show us a workbook with the data and the code.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jul 2010
    Posts
    6
    Location

    managing multiselected rows and columns in an array

    hi all
    I attached an example. thanks a lot for your help

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    What is this code doing?

    What am I supposed to do to run and see a) a good run, and b) a failed run?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Regular
    Joined
    Jul 2010
    Posts
    6
    Location
    Hi:
    Sorry, I`ll try to explain what does it work.
    On Sheet1 I selected several rows, p.e, row1, row2 and row5to7, then I fill an array with this datas and copy some of the slected columns of each row to sheet2. In my real work sheet1 have nearly 15 columns , and I need to fill 3 more sheets with these data (clalculating several formulas in each sheet.
    I have done it with one selected row, or a range of continuos rows, but if I try to select different rows, not continious,I could only copy the first one.
    I have tried to have a look on selction.areas but it fail when I filled the array with 2nd, 3rd,.... areas. it only works with the first area. How can I manage an array with different areas?
    thanks a lot for you help
    angelin

  6. #6
    VBAX Regular
    Joined
    Jul 2010
    Posts
    6
    Location
    hi again
    after select 1,2, or several rows, please run macro1. it fill an array and I copy several of this selected columns to sheet2, as you can see, if you select on or several continous rows works fin, but if you tried to selected at the several time some not conitiuos rows only copy the first selection.
    thanks again

Posting Permissions

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