Button Macro - Select Next & Previous Name in Drop Down List

proiub

New Member
Joined
Mar 17, 2015
Messages
1
Hi,
I have a typical data validation list in cell "P3" with about 28names to choose from. I'd like to have two buttons on the spreadsheet next to the drop down list that will allow the user to select the next name (i.e. open the dropdown list and scroll down one name) and the other button that will be called previous (i.e. select the dropdown list and scroll up one name).
Cells P2 and P4 respectively contains:
=INDEX(Sheet1!$G$2:$G$28,IF(MATCH(P3,Sheet1!$G$2:$G$28,0)-1<1,Sheet1!$G$28,MATCH(P3,Sheet1!$G$2:$G$28,0)-1))
=INDEX(Sheet1!$G$2:$G$28,IF(MATCH(P3,Sheet1!$G$2:$G$28,0)>ROW(Sheet1!$G$28)-ROW(Sheet1!$G$2),Sheet1!$G$2,MATCH(P3,Sheet1!$G$2:$G$28,0)+1))


Guidance needed!

Note: I am already using a Macro to print all result cards on one click.
 

Attachments

  • Data Validation.jpg
    Data Validation.jpg
    97.7 KB · Views: 44

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

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