Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dim rng as Range
set rng = Range("Data") if you are doing it in a sheet module and the named range refers to cells on another sheet then you will need to qualify it with that sheet name set rng = Worksheets("ABC").Range("Data") or set rng = Thisworkbook.Names("Data").ReferstoRange of course this assumes that the name Data actually refers to a range. -- Regards, Tom Ogilvy "sloth" wrote in message ups.com... Thanks Peter. I did that and it appeared to work, but when I tried to assign the new name range (data) to a range variable (rng1) I got the following error: Method 'Range' of object '_Global' failed Any thoughts? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
relative Named Ranges based on worksheet | Excel Worksheet Functions | |||
Copy worksheet with named ranges to new workbook and keep names | Excel Worksheet Functions | |||
Copy data in named ranges to a newer version of the same template to identical ranges | Excel Programming | |||
named ranges - changing ranges with month selected | Excel Programming | |||
VBA union of two ranges | Excel Programming |