+ Reply to Thread
Results 1 to 2 of 2

Macro to change caption of activeX control checkboxs

  1. #1
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Macro to change caption of activeX control checkboxs

    Hello, I found this piece of code that should change the label of a checkbox but I got run time error 438 object doesn't support this property or method.
    name of the checkbox is "CB10"
    PHP Code: 
    Sub ChangeCheckboxCaption()
    ActiveSheet.CheckBoxes("CB10").Caption "MeteringFee"
    End Sub 
    how can I make it work please?

    thanks!
    Last edited by lynnsong986; 12-08-2019 at 12:49 AM.

  2. #2
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Macro to change caption of activeX control checkboxs

    sorry I just fixed it, looks like I had too many of them on the sheet and they weren't named properly.

+ 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. Pop up caption when hovering over form control checkbox
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2018, 08:29 AM
  2. Replies: 1
    Last Post: 02-27-2017, 09:17 AM
  3. Change Caption on a Shape used to Run Macro
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2015, 07:30 AM
  4. Combo Box Form Control w/macro to change pivot table filters - Getting Errors
    By Nyolls in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-29-2013, 05:37 PM
  5. Toggle change control button face id & caption
    By jpexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2009, 08:05 AM
  6. Possible to change Form caption to cell value or variable
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2009, 04:36 PM
  7. Toggle change control button face id & caption
    By mikeburg in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2005, 10:05 PM

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