View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
NickHK NickHK is offline
external usenet poster
 
Posts: 4,391
Default Insert range of cells with a (UDF) function

You cannot achieve this with a UDF, as they can only (with a few exceptions)
return a value to a cell.

What do you mean by "Depending on a cell value I want to insert one of tese
ranges" ?

NickHK

"firsttimer" wrote in message
...
Hi,

I have several ranges defined( range1=$1:$15, range2=$16:$20,

range3=$20:$30)

Depending on a cell value I want to insert one of tese ranges.
e.g.
InsRange("range"&A1)

Is should be possible with a VBA function, but I dont have any VBA

experience