+ Reply to Thread
Results 1 to 4 of 4

Toggle the name of a button when pressed

  1. #1
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Toggle the name of a button when pressed

    Is there a way to set the text/name of a button so that it toggles between two values each time it’s pressed?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643
    Try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Toggle the name of a button when pressed

    Outstanding...thanks

    A follow on question...if I have a cell that references a worksheet by the same name as the caption (i.e. ='Caption1'!A1) how can I use that button and the change in caption name to also change the cell reference to (i.e. ='Caption2'A1)

  4. #4
    Forum Contributor
    Join Date
    11-17-2004
    MS-Off Ver
    Office 2016
    Posts
    527

    Re: Toggle the name of a button when pressed

    To be fair, I ought to close this post as solved. I have taken this great advice and this does just what I needed, thank you very much.

    The second part of my question I have posted as part of another question I had.
    http://www.excelforum.com/excel-prog...reference.html

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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