Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I insert a cell which changes value when clicked on

I wnt to have cell in excel which changes from TRUE to FALSE when clicked on
and vice versa. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 266
Default How do I insert a cell which changes value when clicked on

No it isn't possible. You can do something close.

1) Create a button which executes VBA code. The code will check the value
of a cell for example "C1" and if the contents are "False" put a value of
"True there and vice versa.


"JohnRScott" wrote:

I wnt to have cell in excel which changes from TRUE to FALSE when clicked on
and vice versa. Is this possible?

  #3   Report Post  
Member
 
Location: Sweden
Posts: 30
Default

1.Right click on the toolbar, from the popup select control box.
2.Select a command button from the control box on your sheet
3.Double click on the command button to open the code window and paste following codes
Code:
Private Sub CommandButton1_Click()
    Sheet1.Range("A1").Value = Not CBool(Sheet1.Range("A1").Value)
End Sub


Chris
------
Convert your Excel spreadsheet into an online calculator.
http://www.spreadsheetconverter.com
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Numbers view different when clicked on cell joey Excel Discussion (Misc queries) 3 January 24th 09 01:36 PM
How can I detect that an excel cell has been clicked Ballantine Excel Discussion (Misc queries) 5 August 14th 08 10:09 AM
HOW DO I GET AN X IN A CELL IN EXCEL TO COME & GO WHEN CLICKED carbetboy Excel Discussion (Misc queries) 3 March 22nd 08 11:21 PM
How do I insert radio button to sum a cell when clicked Joe D. Excel Worksheet Functions 1 March 6th 06 08:54 PM
Insert Data when hyperlink is clicked Chuck N Excel Discussion (Misc queries) 2 September 9th 05 05:12 PM


All times are GMT +1. The time now is 10:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"