• Load array with cell location (Excel xp, Win2000)

    Home » Forums » AskWoody support » Productivity software by function » Visual Basic for Applications » Load array with cell location (Excel xp, Win2000)

    Author
    Topic
    #366409

    I want to search a worksheet for the word “GRAND TOTAL” and every cell that has these words in it, i want to load to an array(i). If the words GRAND TOTAL are in cells A41, I41, Y41, Q42 how do i get the A41 from Range(“A41”).select into the array?

    array(0) = “A41”
    array(1) = “I41”
    array(2) = “Y41”

    thanks for the help. I really appreciate all the great help i get here. thanks again

    Viewing 0 reply threads
    Author
    Replies
    • #568161

      Try:

          array(0) = Range("A41").Address
      
      • #569062

        Thank you. Once i have the array loaded I just want to extract the numbers of the cell. A41, A2424, i want to load another array with num(0) =41 and num(1)=2424. I’ve tried val(“A41”) but that doesn’t work. Thanks

    Viewing 0 reply threads
    Reply To: Load array with cell location (Excel xp, Win2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: