Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is what I need:
--------------------------- I am working in worksheet 1.I would like to declare a range calle My_Range in worksheet 2. The cells that make up the range will be known only at run time. ie M range will have n number of rows where n will be determined when th program runs. How do i do this? So far this is what I've done ----------------------------------- Set My_Range = Range(Range("a1"), Range("a1").Offset(n)) This works but it selects the range from the current worksheet i sheet1. When I try this: -------------------- Set My_Range = Range(Worksheets.("sheet2").Range("a1") ksheets.("sheet2").Range("a1").Offset(n)) It gives me an error. Help! I need to finish this asap for an assignment. Pooja -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel Addin:Setting the range to the Excel.Range object range prop | Excel Worksheet Functions | |||
Declaring as Object rather than Excel.Worksheet | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming | |||
Range object to Array object conversion | Excel Programming |