Rajkiran557
New Member
- Joined
- Jun 21, 2014
- Messages
- 10
Hi,
i need a macro to paste the below formula in a range for cells, however i need to select the cell reference with help of a input box because the value is not always in A2 and i also need to select the range where the formula has to be pasted
=IF(A2<=30,""0-30"",IF(A2<=60,""31-60"",IF(A2<=90,""61-90"",IF(A2<=120,""91-120"",""120+""))))
all i got was
Set UserRange = Application.InputBox(Prompt:="Please Select Range", Title:="Range Select", Type:=8)
UserRange.Value = _
"=IF(A2<=30,""0-30"",IF(A2<=60,""31-60"",IF(A2<=90,""61-90"",IF(A2<=120,""91-120"",""120+""))))"
appreciate your help....
i need a macro to paste the below formula in a range for cells, however i need to select the cell reference with help of a input box because the value is not always in A2 and i also need to select the range where the formula has to be pasted
=IF(A2<=30,""0-30"",IF(A2<=60,""31-60"",IF(A2<=90,""61-90"",IF(A2<=120,""91-120"",""120+""))))
all i got was
Set UserRange = Application.InputBox(Prompt:="Please Select Range", Title:="Range Select", Type:=8)
UserRange.Value = _
"=IF(A2<=30,""0-30"",IF(A2<=60,""31-60"",IF(A2<=90,""61-90"",IF(A2<=120,""91-120"",""120+""))))"
appreciate your help....
