+ Reply to Thread
Results 1 to 3 of 3

Macro going through a list

  1. #1
    Registered User
    Join Date
    09-20-2017
    Location
    Belgium
    MS-Off Ver
    2016
    Posts
    2

    Macro going through a list

    Hi,

    I came across the following problem: I haven't got that much knowledge of programming, until this moment, I only made macros, using the record function in excel. This doesn't seem to work with the macro I need atm.
    Little explanation:



    The idea is the possibiliy of manually going through a list (listed in worksheet B), by using a macro shortcut. When encountering an article that applies to the project, pressing enter and continuing in the row below, again till an article that applies is encountered.

    I was thinking to do it based on a 'xxx' cel, which is moved down, cell by cell, by using the macro command. The associated articles are shown, using the vert.lookup function, searching for the 'xxx' and showing the arcticle information of the concerned row. (By moving the xxx cel one row down, the vert.lookup should apply to the next row, and so, the next article).


    But I haven't really got a clue how to start. The macro should one way or another, search for the xxx cell and start there, moving that cell.

    Here's a simple excel file included (can't seem to add any attachments, so I included the excel file, using wetransfer)

    https://we.tl/WggSHL70dQ

    Hope my explanation was somewhat clear



    Thanks in advance!


    Michiel

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,616

    Re: Macro going through a list

    Please note that at least some of us have such services as wetransfer blocked.
    Here is Glenn's advice on attachments probably description below point 4 applies to your problem directly.

    ---

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    09-20-2017
    Location
    Belgium
    MS-Off Ver
    2016
    Posts
    2

    Re: Macro going through a list

    Ok, added small excel file attachment with the advance option.
    Cell A4,A5 and A6 contain the vert.lookup function needed to display the results. (in case of using the macro, after using the vert.lookup function, just the values will be pasted and so
    independent of the location of the "xxx" cell, otherwise all the chosen articles would change when moving the "xxx" search cell ofcourse)
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 06-10-2016, 06:52 AM
  2. Replies: 6
    Last Post: 09-29-2015, 12:11 AM
  3. Replies: 4
    Last Post: 07-07-2015, 10:30 AM
  4. Replies: 1
    Last Post: 01-09-2015, 10:43 PM
  5. Macro created defined list not recognized by macro to populate list
    By CharlieGough in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-28-2013, 02:29 PM
  6. Replies: 0
    Last Post: 04-15-2013, 09:22 AM
  7. Need a macro that will cycle through list then filter, subtotal, and print the list
    By Crimson Bourne in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-26-2012, 12:53 PM

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