Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Options in Cell
Is there a way to create;
A1=If(b10,b1, (otherwise 0 or user input) so if b1=1 then a1=1, if b1=0 then a1 would = 0 or else a value inputed by the user. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Options in Cell
If Range("B1").Value 0 Then
Range("A1").Value = Range("B1").Value Else Range("A1").Value = InputBox("Enter a value for Cell A1.", , 0) End If Tod -----Original Message----- Is there a way to create; A1=If(b10,b1, (otherwise 0 or user input) so if b1=1 then a1=1, if b1=0 then a1 would = 0 or else a value inputed by the user. . |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Options in Cell
Cells can't contain both a formula and user input.
You could simulate what you're after with an event macro. Put this in the worksheet code module: Private Sub Worksheet_Calculate() With Range("B1") If .Value 0 Then Range("A1").Value = .Value ElseIf .Value = 0 Then With Range("A1") If IsEmpty(.Value) Then .Value = 0 End With Else '????? End If End With End Sub In article , "Jon M." wrote: Is there a way to create; A1=If(b10,b1, (otherwise 0 or user input) so if b1=1 then a1=1, if b1=0 then a1 would = 0 or else a value inputed by the user. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
tools options view window options | Excel Discussion (Misc queries) | |||
Code to copy the formulae of one cell to all the cell in the rangewith the specific cell and columnnumber changing Options | Excel Discussion (Misc queries) | |||
Cell options/combo box? | Excel Worksheet Functions | |||
How can i create in one cell scroll-down different options? | Excel Discussion (Misc queries) | |||
Read options in more than one cell | Excel Worksheet Functions |