Macro going through a list

Morillo

New Member
Joined
Sep 21, 2017
Messages
1
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.


A simple excel file is included below (as posted on other forum, the attachment option doesn't seem to work)

https://www.excelforum.com/attachme...h-a-list-macro-lijst-meetstaat-voorbeeld.xlsx


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
smile.gif
)


Hope my explanation was somewhat clear :)






Thanks in advance!




Michiel
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,216,030
Messages
6,128,418
Members
449,449
Latest member
Quiet_Nectarine_

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top