Excel: How can I insert the value of cell into ActiveX button caption?

Page 2 of 2 FirstFirst 12

  1. Posts : 1,030
    Linux Mint / XP / Win7 Home, Pro, Ultimate / Win8.1 / Win10
       #11

    kegobeer said:
    No, he wants to dynamically change the label.
    Ah, my bad. I think you are correct - VB is the way to do it.

    Regards,
    GEWB
      My Computer


  2. Posts : 23
    Windows 7 Home (x64)
    Thread Starter
       #12

    FYI, I've found the code I needed. Simple as a matter of fact.

    Under ThisWorkbook > Workbook, the code is:
    Private Sub Workbook_Open()
    ThisWorkbook.Worksheets("RAID_PRV").ClearWeek.Caption = "Clear week " & ThisWorkbook.Sheets("RAID_PRV").Range("OldestWeek")
    End Sub


    I'd like to thank everyone who wanted to help and spent the time doing so.
    Peatawn
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:29.
Find Us