LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default cells to behave like check boxes

Dear Excel Experts:
€’ I am using Excel 2007
€’ I have two sheets -- Sheet1 and Sheet2.
€’ Both sheets are almost identical.
€’ Sheet2 cells contains mostly €œ=€ formulas referring to Sheet1.
€’ Example 1: Cell F5 of Sheet2 contains the formula €œ=Sheet1'!F5€
€’ Example 2: Cell AE554 of Sheet2 contains the formula €œ=Sheet1'! AE554€

Objective:
€’ Considering that range €œE5 to AF555€ in Sheet2 are auto filled with €œ=€
formulas referring to E5 to AF555 of Sheet1, I would also like to make cells
Sheet2 €œE6 to AF555€ as switches that behaves like €œcheck boxes€.

Users possible scenarios in Sheet2:
€’ If the user mouse clicks cell E6, the macro will replace the existing
formula in cell E6 with a value of €œ1€.
€’ In the same way, if the user mouse clicks cell AF555, the macro will
replace the existing formula in cell AF555 with a value of €œ1€.
€’ If ever the user feels undoing what he did in cell E6, all the user will
do is to click again cell E6 and the macro will €œfill€ cell E6 with the
original formula the cell has.
- If appropriate, since almost all the cells in Sheet2 are just filled with
€œ=€ formulas referring to Sheet1, the macro can just copy the €œuntouched€
formula safely hidden in E5 and €œfill€ it in cell E6. Thus, the formula
€œ=Sheet1'!E5€ in cell E5 will now be €œ=Sheet1'!E6€ in cell E6 after the copy
fill.

Restrictions:
€’ This €œcheck box€ behavior should only be true to cells E6 to AF555 (in
Sheet2) only.
€’ Value €œ1€ is the only allowed value to be entered by the macro when the
cell is clicked.

Extra Info:
€’ Cell E6 to AF555 in Sheet2 is equivalent to 13,176 boxes and expanding.
€’ I choose €œjust€ cells to behave like check boxes because it is quicker and
easier to expand these boxes when the data grows.

Im still new to excel so please indicate extra details needed for beginners
like me, particularly as to where to put the codes.

Thank you very much for your time.

Omega


 
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
Check boxes linked to other cells? C. Cunningham Excel Worksheet Functions 4 December 29th 05 11:33 PM
Clearing Check Boxes and Cells Mel Excel Discussion (Misc queries) 1 May 25th 05 09:00 PM
Add Check Boxes to Many Cells Dave Y[_3_] Excel Programming 4 December 8th 04 01:38 AM
RefEdit does not behave like Excel's built-in reference edit boxes Tom Ogilvy Excel Programming 0 September 11th 03 06:43 PM
RefEdit does not behave like Excel's built-in reference edit boxes Dave Ramage[_2_] Excel Programming 0 September 11th 03 04:55 PM


All times are GMT +1. The time now is 10:02 PM.

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

About Us

"It's about Microsoft Excel"