+ Reply to Thread
Results 1 to 6 of 6

Userform Checkbox caption

  1. #1
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Userform Checkbox caption

    Gurus,

    I am attempting to change the caption of a checkbox based on a language selected. The translated words are on a separate worksheet (sheet1). The error I am receiving is

    Run Time Error '24':
    Object Required

    I am not very familiar with VBA so I have no clue what that means. I only got this far by reading through threads on this forum.

    Please Login or Register  to view this content.
    TIA,
    Tim

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Userform Checkbox caption

    This worked for me. The code will work in any area of userform module.

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Userform Checkbox caption

    Hello Tim,

    My guess is that UserForm1 is not displayed when you run the macro. UserFrom1 must either be displayed or be loaded in memory. Otherwise you can not access it.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform Checkbox caption

    Have you checked the name of the checkbox?
    If posting code please use code tags, see here.

  5. #5
    Forum Contributor
    Join Date
    06-21-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    179

    Re: Userform Checkbox caption

    Thanks Mehmetcik for pointing me in the right direction. For some reason your code did not work for me. However, I played around with it and after creating a Checkbox specifically for the language change I used the following code to change the captions of another checkbox. This code belongs on the worksheet under Microsoft Excel Objects. It is not a macro as I originally planned. Works great!!! Thanks again to all that replied.

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Userform Checkbox caption

    Eh, what happened to the userform of the thread title?

+ 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. [SOLVED] Change Checkbox Caption After Userform Activation
    By pjcbm9 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2014, 08:15 PM
  2. [SOLVED] Userform to rename caption of Multipage as per Checkbox
    By calvinle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2014, 11:07 AM
  3. Change Checkbox Caption on Userform with Name in Variable
    By XLVBA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-11-2013, 04:43 PM
  4. Get UserForm checkbox caption and pass to another UserForm on click or mouse down
    By tulsaguy71 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-08-2013, 11:07 AM
  5. Replies: 0
    Last Post: 11-15-2012, 12:29 PM

Tags for this Thread

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