VBA Macro wait for dropdown list selection, then move to next cell.

JohnZ1156

Board Regular
Joined
Apr 10, 2021
Messages
153
Office Version
  1. 2021
Platform
  1. Windows
I have a check register table. Some of the fields (columns) have data Validation dropdown Lists from which I choose.
I would like the automation macro to STOP at the dropdown cell with the dropdown list, allow me to dropdown and make a selection, then move to the next column and do the same with that dropdown list.

Also, if I use an Input Box, can I enter "nothing" ( a blank cell) and then have the macro move on to the next column?
Or must I enter a value of Zero?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
My approach would be to prepare a userform with relevant comboboxes and texboxes. Place an OK button on the form.
I would also divide my code into two subs, before form show and after close.
Also create global variables outside the subs.

Run your first sub and show your userform at the end.
Get the input values to global variables for future use and close the form on OK button click event. Also make a call for your second sub.
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,887
Members
449,057
Latest member
Moo4247

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