Results 1 to 8 of 8

checkbox name/properties

Threaded View

  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
    Sub pridanie()
    
    With Sheets("pin2")
    If .CheckBoxes("Check Box 2").Value = xlOn Then
        Sheets("data").Select
        Range("A2:A30").Select
        Selection.Copy
        Sheets("pin2").Select
        Range("M1").Select
        ActiveSheet.Paste
    Else
        Range("M1:M30").Select
        Selection.ClearContents
    End If
    End With
    
    End Sub
    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 :
    If .CheckBoxes("pin2").Value = xlOn Then
    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.

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