Hi all! I'm having some issues with a Combo Box that I cannot for the life of me figure out. I am trying to have a single Combo Box that jumps around to whichever cell the user selects in a specific column on a spreadsheet and to then dynamically change the LinkedCell of the Combo Box to the selected cell. I've gotten everything working except for the LinkedCell part - here's the code I'm currently running with:
The code keeps bugging out on the line of ".ControlFormat.LinkedCell = ActiveCell.Address". I've tried what feels like a million different formulations of this (including not using the ".ControlFormat" portion, messing around with the stuff after the "=", etc.), but I keep getting the same run-time error '438'. If anyone could help me figure out what I'm doing wrong I would be extremely grateful.
Also, as an aside, if anyone knows how I can use VBA to (i) put the cursor into the Combo Box and (ii) make it to where, upon initially selecting/targeting the Combo Box, it selects all of the text therein (i.e., something akin to pressing "Ctrl+a"), I would also very much appreciate that as well. (This would just be an added bonus and I'm mainly just looking to figure out how to alter the linked cell.)
Bookmarks