View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sachchi Sachchi is offline
external usenet poster
 
Posts: 1
Default Create a new range from existing range

Hi,

I am writing a user defined function with a range as one of the
arguments e.g. N4:N14. While executing the function, I need to find
out cells in column x units away e.g. when x = 1 output should be
O4:14 or when x =2 output should P4:P14. I need to assign new range to
a variable of type range.

I am new to VBA. Can you help me?

Sachchi