+ Reply to Thread
Results 1 to 10 of 10

Excel Ctrl Tilde To Show Named Range

  1. #1
    Forum Contributor
    Join Date
    12-28-2015
    Location
    US
    MS-Off Ver
    365
    Posts
    133

    Excel Ctrl Tilde To Show Named Range

    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!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Excel Ctrl Tilde To Show Named Range

    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

  3. #3
    Forum Contributor
    Join Date
    12-28-2015
    Location
    US
    MS-Off Ver
    365
    Posts
    133

    Re: Excel Ctrl Tilde To Show Named Range

    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!

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Excel Ctrl Tilde To Show Named Range

    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.

  5. #5
    Forum Contributor
    Join Date
    12-28-2015
    Location
    US
    MS-Off Ver
    365
    Posts
    133

    Re: Excel Ctrl Tilde To Show Named Range

    thanks for the reply.

    I receive Error 1004 "Application-defined or Object-defined error" on line "If nm.RefersToRange.Parent.name = ActiveSheet.name Then"

  6. #6
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Excel Ctrl Tilde To Show Named Range

    Do you have any names with invalid references?
    I.E. if you go into Name Manager, anything with #REF or similar?

  7. #7
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Excel Ctrl Tilde To Show Named Range

    Modified to test the validity


    Please Login or Register  to view this content.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Excel Ctrl Tilde To Show Named Range

    Quote Originally Posted by ByteMarks View Post
    Modified to test the validity
    Thanks for the assist

  9. #9
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,980

    Re: Excel Ctrl Tilde To Show Named Range

    Welcome

  10. #10
    Forum Contributor
    Join Date
    12-28-2015
    Location
    US
    MS-Off Ver
    365
    Posts
    133

    Re: Excel Ctrl Tilde To Show Named Range

    Thanks for the help!

    worked perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to get my named range to show its value (1 cell)
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-26-2018, 03:58 PM
  2. [SOLVED] Show/Hide Rows Columns based on value in named range
    By Andrew-Mark in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2016, 07:13 AM
  3. [SOLVED] If Yes then only show these items in new table or named range
    By RussB in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-27-2015, 10:27 PM
  4. Show column to left of named range when clicking hyperlink
    By Crispld in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-31-2014, 06:48 PM
  5. Insert and Show formula with a named range
    By amphinomos in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-03-2014, 12:27 PM
  6. Only show sheet name in list if the name is stored in a named range
    By lukestkd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2013, 03:51 PM
  7. problem with userform show data from a named range
    By jpruffle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-22-2009, 06:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1