Is there a way upon pressing ctrl+~ that instead of displaying the formula in each cell, display that cells respective name. So if there is no name for that cell, and name is defined as named range, the cell would just be blank.
thanks in advance!
Is there a way upon pressing ctrl+~ that instead of displaying the formula in each cell, display that cells respective name. So if there is no name for that cell, and name is defined as named range, the cell would just be blank.
thanks in advance!
ctrl+~ is a restricted excel command that toggles between "answer" mode and formula mode. You could probably pick a different combination for your macro?
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
thanks for the quick response!
anything thoughts on how to best "simulate" this event/action. basically, regardless of hotkey or button, for a given sheet - how would you be able to toggle between a state where named ranges where in cells and then return back...like answer mode.
thanks!
Given that named ranges can be more than one cell, here's a routine which toggles overlaying the named ranges on the active sheet with shapes.
Put code in standard module and assign shortcut.
![]()
Please Login or Register to view this content.
thanks for the reply.
I receive Error 1004 "Application-defined or Object-defined error" on line "If nm.RefersToRange.Parent.name = ActiveSheet.name Then"
Do you have any names with invalid references?
I.E. if you go into Name Manager, anything with #REF or similar?
Modified to test the validity
![]()
Please Login or Register to view this content.
Welcome![]()
Thanks for the help!
worked perfectly.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks