+ Reply to Thread
Results 1 to 6 of 6

Copy specific cells in a row to an array and then display them

  1. #1
    Registered User
    Join Date
    01-19-2009
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    29

    Copy specific cells in a row to an array and then display them

    Me again,

    I want a macro that if a certain cell on a row in column F on my worksheet is "6" then copy the cell in columns B and H on the same row are to be copied into an array and then when the loop is done, display the copied cells in a msgbox.

    Is there a simpler way to do this without fidgeting with an array?

    Thanks in advance
    Macster
    Last edited by Macster; 01-22-2009 at 10:15 AM.

  2. #2
    Registered User
    Join Date
    01-19-2009
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    29
    I had a browse through the archive here and found an old code from Leith which I tried to change accordingly

    Please Login or Register  to view this content.
    The box comes up blank though..

  3. #3
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    764

    macro

    HI
    try these codes
    Please Login or Register  to view this content.
    Ravi

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Is this what you need?

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    01-19-2009
    Location
    Stockholm
    MS-Off Ver
    Excel 2003
    Posts
    29
    Excellent! Many thanks!

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    If you are satisfied with the solution(s) provided, please mark your thread as Solved and rate the replie(s) using the scales icon. It's also nice to know which solution you used.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1