Results 1 to 3 of 3

Turning an excel cell into a check box - but selected cell range only not the whole sheet

Threaded View

  1. #1
    Registered User
    Join Date
    03-23-2016
    Location
    Michigan, USA
    MS-Off Ver
    2016
    Posts
    10

    Question Turning an excel cell into a check box - but selected cell range only not the whole sheet

    I really like the answer to the first part of my title found in this thread Turning an excel cell into a check box

    The code they gave to do that task is as follows:

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    Cancel = True
        With Target
            .Value = "Ö"
            .Font.Name = "Symbol"
            .Font.FontStyle = "Regular"
            .Font.Size = 12
            .HorizontalAlignment = xlCenter
            .VerticalAlignment = xlBottom
        End With
        
    End Sub
    But can anyone tell me, how would I modify the above code to target only specific cells that are double clicked and not the entire sheet? For example just a range say A:1 through C:20 or multiple ranges on the sheet A:1 through C:20 and A:26 through C:46 or similar.

    Also

    How about the ability to remove the check mark if the cell is double clicked again?
    Last edited by MilsonHQ; 03-24-2016 at 10:59 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Turning a cell into a check box
    By mets3145 in forum Excel General
    Replies: 8
    Last Post: 03-24-2016, 06:32 AM
  2. [SOLVED] Check same cell on range of worksheets and if not blank, copy into a list on another sheet
    By eddiecruz in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-14-2015, 05:14 PM
  3. Check cell value in range, depending on condition copy to another Sheet
    By KemalO in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2015, 11:01 AM
  4. Check cell Value in range and copy specific cells to another sheet
    By jmethejedi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-08-2013, 06:25 PM
  5. [SOLVED] copy-paste-selected-cell-range-another-sheet
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 04-26-2013, 06:12 AM
  6. Highlight blank cell in a selected range of a sheet
    By ROHAN999 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-20-2013, 08:50 AM
  7. when typing to a cell check if this number exist in a range of cells (in sheet 2)
    By gtserkou in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-28-2008, 01:18 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