Hi,
I have a range of dates in z1:z15 (sometime the entire range won't be populated). Each time I open the workbook I need to loop that range and create multiple command buttons with each .caption being the value of the cell in the range as we loop through. So,
when the workbook is done loading I could have up to 15 command buttons sized the same, place horizontally next to each other and each have a distinct caption from the dates in the range. To even add more difficulty to it, each command button needs to have
code assigned to it. I have had some success looping through my range and creating the command buttons but am stuck trying to locate them on the page and change their characteristics (backcolor, forcolor, caption). As well, I have no idea how to add code
to each one when I create them (the code will be the same for all the buttons).
Z1 Feb 01 13
Z2 Mar 09 13
Z3 Apr 02 13
...
_______________ _______________ _______________
Feb 01 13 | | Mar 09 13 | | Apr 02 13 |
______________| |______________| |______________|...............
Each command button needs the same code assigned to it.
Hopefully I am making sense.
Thanks,
Dan