Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have a few command buttons to reset some cells in my worksheet. However, I cannot figure out how to keep the conditional statements i the cell after I've cleared the entries in the cells. I am trying t add some VB to the worksheet to do the conditionals for me. I.e., i E16 = Yes, F16 = Enter Value. I've been trying to use some script such as: ActiveCell.FormulaR1C1 = "=IF(RC[-1]=""Yes"",""Enter Value"","""")" Range("F16").Select I am trying to add this code he Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range) When I think I've figured out the logic I get some continuous loopin when I try to clear the contents of the cell with the command button. An example of the command button code is: Range("f16:f40").Select Selection.ClearContents Thanks for your help -- msals2 ----------------------------------------------------------------------- msals22's Profile: http://www.excelforum.com/member.php...fo&userid=3090 View this thread: http://www.excelforum.com/showthread.php?threadid=54903 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Round up entire worksheet | Excel Worksheet Functions | |||
How to reference entire worksheet in new worksheet | Excel Worksheet Functions | |||
Copy entire row to different worksheet | Excel Worksheet Functions | |||
Copy entire Worksheet how? | Excel Programming | |||
adding to an entire worksheet | Excel Programming |