+ Reply to Thread
Results 1 to 4 of 4

Insert ONLY a space in cell with checkbox

  1. #1
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Insert ONLY a space in cell with checkbox

    How do I do, so that if the box is NOT checked - it inserts a space(and only a space) in the cell below?

    And removes it if checked...

    Blank.xlsx

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Insert ONLY a space in cell with checkbox

    Put this in a Module and assign to your control.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    05-20-2015
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    307

    Re: Insert ONLY a space in cell with checkbox

    Thanks.

    I've done some editting, as I need it to do the work in other cells, and I get this error... why= :-)

    Sub CBCheck()
    With ActiveSheet.Shapes("Menu")
    If .ControlFormat.Value = 1 Then '1= True
    .Range("C3").Value = " "
    Else
    .Range("C3").Value = ""
    End If
    End With
    End Sub

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Insert ONLY a space in cell with checkbox

    The shape with that name does not exist on the activesheet.

+ 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. ActiveX checkbox to insert a cell from a different workbook
    By whytewolves in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 10-24-2015, 07:07 PM
  2. [SOLVED] insert space after a word in cell
    By warston in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-20-2015, 04:18 PM
  3. [SOLVED] Loop Through Column B and insert a space in each cell, without deleting the contents.
    By EnigmaMatter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2014, 10:10 AM
  4. How to insert multiple checkbox in a single cell
    By pgft in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-13-2013, 09:39 AM
  5. Insert a 'space' between data in a cell...?
    By ash_the_fish in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-10-2009, 04:16 AM
  6. Insert new Row and checkbox in that row associated to a cell
    By Phil_pac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2009, 11:49 AM
  7. How can I insert a checkbox into a cell in Excel?
    By yogamitch in forum Excel General
    Replies: 4
    Last Post: 08-21-2006, 12:25 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