+ Reply to Thread
Results 1 to 8 of 8

checkbox name/properties

  1. #1
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    checkbox name/properties

    hello everyone,
    I have this code
    Please Login or Register  to view this content.
    and I need only one thing : checkbox is now named "Check box 2" it is possible to rename it somehow to e.g. "pin2" ? (it means like this :
    Please Login or Register  to view this content.
    because I have more than one checkboxes and after some time it will be difficult to know which checkbox has its name ... thanks !
    Last edited by miso.dca; 12-21-2009 at 02:45 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: checkbox name/properties

    Select the CheckBoxthen you will see it's name in the Name Box at the top of the sheet. Change it in the name box & click Enter
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: checkbox name/properties

    Your code will run more efficiently if you do not Select sheets and/or Ranges
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: checkbox name/properties

    yes, I did it before but I've got this message : "Unable to get the Checkboxes property of the Worksheet class" (btw. I can't named it "PIN2" because after clicking enter Excel got on cell PIN2, I have to use PIN-2 (this isnt problem) )

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: checkbox name/properties

    Quote Originally Posted by miso.dca View Post
    yes, I did it before but I've got this message : "Unable to get the Checkboxes property of the Worksheet class" (btw. I can't named it "PIN2" because after clicking enter Excel got on cell PIN2, I have to use PIN-2 (this isnt problem) )
    Not sure what you mean, attach the workbook

  6. #6
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: checkbox name/properties

    ok, I uploaded excel with my problem, thanks for help !
    (btw. there are two checkboxes ... first which is named pin-2 (I renamed it - from check box 1 to pin-2) and second which I didnt renamed and it has name check box 2)
    Attached Files Attached Files

  7. #7
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: checkbox name/properties

    I've added a CheckBox from the Forms menu & renamed it Pin2 & the code runs fine
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    07-26-2009
    Location
    Slovakia
    MS-Off Ver
    Excel 2019
    Posts
    244

    Re: checkbox name/properties

    heh ... that's strange ... first I named it "pin" and it didnt work, now I named it "pin" and everything is fine but "pin-2" doesnt work, maybe because of "-" ... who knows but now everything is fine, thanks ! (I was wondering how you could named checkbox "pin2" but never mind in my excel if I write in name box "pin2" and click on enter excel will always jump to cell in column PIN and row 2

+ 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