Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi
Apologies if this has appeared twice. I want to turn the following sub into a custom function but substituting Sub Choice() with Function Choice() and End Sub with End Function didn't work. Any help would be gratefully received Sub Choice() Dim RowRand As Range Set RowRand = ActiveCell.Offset(0, -1) Select Case RowRand Case 45 To 50 ActiveCell = ActiveCell.Offset(0, -10) Case Is 50 ActiveCell = ActiveCell.Offset(0, -9) Case Else ActiveCell = 27.89 End Select End Sub Ritchi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA: For Count, when count changes from cell to cell | Excel Discussion (Misc queries) | |||
copy name from active sheet to cell - using macro or function | Excel Worksheet Functions | |||
Need some comments on my Utility_Move class module. | Excel Worksheet Functions | |||
Custom functions calculating time arguments Help Desperate | Excel Worksheet Functions | |||
HYPERLINK IF referencing the cell of the function.. | Excel Worksheet Functions |