I'm trying to add to my double click code that if I double click F2 and that it is currently N , then it should be changed to read Y , and vice-versa.
Can someone advice with some VBA to satisfy this?
Grateful for any help.
I'm trying to add to my double click code that if I double click F2 and that it is currently N , then it should be changed to read Y , and vice-versa.
Can someone advice with some VBA to satisfy this?
Grateful for any help.
Using Excel , Word and Access 2003 - For the whole of 2024
Please Login or Register to view this content.
Ben Van Johnson
Excellent - thanks.
BTW , if I were to run this on a merged cell (F2:F3) , how could the code be amended to accommodate this?
This one-liner is an alternate to using the Select Case structure for your original question...
As for your extended question, we just need to force the one-liner to look as the first cell in the merge...Please Login or Register to view this content.
Note: I am assuming this one-liner is in your DoubleClick event procedure along with another line of code setting the Cancel argument to True.Please Login or Register to view this content.
OK thanks. This works too.
I took your suggestion to expand the code to this :
This accommodates the merged cells and solves the issue.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks