AGrayson84
New Member
- Joined
- Mar 21, 2017
- Messages
- 18
Hi everyone, I'm having trouble trying to find anything anywhere online that even does anything remotely similar to what I'm looking for so I can try to learn how to tweak it, but I can't figure out how to even get started on the script, let alone write it out in full. I'm not experienced with VBA and only know how to do a very few basic things, so anyone who is willing to help out I'd super-appreciate it!
I'm looking to use cell B14 to enter an exact value that is in column A. When I run the macro I would like it to look at the value that is currently in B14, and then loop thru the next non-blank value in column A (excluding my header in row 1), and enter that next value into B14. I will be using a button to run this macro, so I guess you can think of it as a dynamic "next" button.
An example would be:
-----------------------------------------------------
A1: [HEADER]
A2: Apples
A3:
A4: Pears
A4: Grapes
A6: Peaches
A7:
A8:
If the current value of B14 was "Peaches", and the were no other non-blank cells after it in the entire column A, the value of B14 would become replaced with "Apples". If you hit the "Next" button again, the value of B14 would become "Pears".
-----------------------------------------------------
Hopefully I described that in a clear enough manner. Thanks a bunch to anyone who is willing to help.... I've spent a few hours the last couple of days trying out various functions and none of them seem to even get me started with what I'm looking to do. Thanks again!
-Andrew
I'm looking to use cell B14 to enter an exact value that is in column A. When I run the macro I would like it to look at the value that is currently in B14, and then loop thru the next non-blank value in column A (excluding my header in row 1), and enter that next value into B14. I will be using a button to run this macro, so I guess you can think of it as a dynamic "next" button.
An example would be:
-----------------------------------------------------
A1: [HEADER]
A2: Apples
A3:
A4: Pears
A4: Grapes
A6: Peaches
A7:
A8:
If the current value of B14 was "Peaches", and the were no other non-blank cells after it in the entire column A, the value of B14 would become replaced with "Apples". If you hit the "Next" button again, the value of B14 would become "Pears".
-----------------------------------------------------
Hopefully I described that in a clear enough manner. Thanks a bunch to anyone who is willing to help.... I've spent a few hours the last couple of days trying out various functions and none of them seem to even get me started with what I'm looking to do. Thanks again!
-Andrew