Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I want to create a range of results in one worksheet based on a range
of input values in another worksheet in the same workbook. I've 'named' the input and result ranges in Excel but am unable to clear the result range using the following code called from Excel with '=Test1(results)' speciified in a cell: Public Function Test1(RangeResult As Range) RangeResult.ClearContents End Function The code runs o.k. but the range isn't cleared and zero is returned. I thought I was getting the hang of VBA but this has stumped me. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Passing a range name as an argument to the Index Function | Excel Discussion (Misc queries) | |||
Defined range difficulty | Excel Discussion (Misc queries) | |||
Construct a range in VB | Excel Discussion (Misc queries) | |||
named range refers to: in a chart | Excel Discussion (Misc queries) | |||
HTML_Control Range name | Excel Discussion (Misc queries) |