J
johann
how can I use an input box in a way so if the user clicks
CANCEL it won't empty out the cell the inputbox sets the
value for?
Thanks,
Johann
Sub ContractMinRange()
Dim Sep As String
'::contract 1
If ActiveCell.FormulaR1C1 = Sheets("CHARTS").Range("A4")
Then
Sep = InputBox("Enter Minimun Range for " & Sheets
("charts").Range("b4"), "Minimum Range", Sheets
("charts").Range("a30"))
Sheets("charts").Range("A30") = Sep
End If
CANCEL it won't empty out the cell the inputbox sets the
value for?
Thanks,
Johann
Sub ContractMinRange()
Dim Sep As String
'::contract 1
If ActiveCell.FormulaR1C1 = Sheets("CHARTS").Range("A4")
Then
Sep = InputBox("Enter Minimun Range for " & Sheets
("charts").Range("b4"), "Minimum Range", Sheets
("charts").Range("a30"))
Sheets("charts").Range("A30") = Sep
End If