Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I created a bunch of named ranges by scanning the headers of a table and
creating named ranges that match the header names. Thes appear normally in the names dialog box, with the correct ranges. Yet when I try to access one of the ranges as in With range("myrange") (Attributes or code End with I get an error message. ??? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() hi Hydra, Can you please quote the error message? To try & narrow it down... Is the range on the active sheet of the active workbook? What is the code inside the With statement? Are there multiple sheets with the samed named ranges? Rob -- broro183 Rob Brockett. Always learning & the best way to learn is to experience... ------------------------------------------------------------------------ broro183's Profile: http://www.thecodecage.com/forumz/member.php?userid=333 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=105711 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You will improve your chances of getting a useful reply if you provide...
Your Excel version Your operating system The error number The error description The code line that causes the error Where the code is located (which module) What steps you have taken to fix the error -- Jim Cone Portland, Oregon USA "Hydra" wrote in message I created a bunch of named ranges by scanning the headers of a table and creating named ranges that match the header names. Thes appear normally in the names dialog box, with the correct ranges. Yet when I try to access one of the ranges as in With range("myrange") (Attributes or code End with I get an error message. ??? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm using windows xp and Excel 2003
I created the ranges using ..Names.AddName:= ColumnHeader, RefersTo:= ColumnRange where Columnheader is a verable that holds the column name and column range is a variable that reads in the desired columnrange. I could not use ActiveSheet.Range.Name = "rngResource".Activate Where "rngResource" is one of the range names, although this is copied right out of the help screen. This throws a syntax error message. Set ColumnHeader = Worksheets("Sheet1").Range(Columnrange) because it confused the variable with the column name and accused me of trying to set a duplicate DIM statement or assignment. In any case the range names appear to be there and assigned properly. The With Range("range") format threw and error message that said "Method Range of Object Global Failed" ????? "Jim Cone" wrote: You will improve your chances of getting a useful reply if you provide... Your Excel version Your operating system The error number The error description The code line that causes the error Where the code is located (which module) What steps you have taken to fix the error -- Jim Cone Portland, Oregon USA "Hydra" wrote in message I created a bunch of named ranges by scanning the headers of a table and creating named ranges that match the header names. Thes appear normally in the names dialog box, with the correct ranges. Yet when I try to access one of the ranges as in With range("myrange") (Attributes or code End with I get an error message. ??? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Narrow Range based on Selection in Another Range | Excel Discussion (Misc queries) | |||
Range(Selection, Selection.End(xlToRight)).Select | Excel Programming | |||
Identifying a selection of a selection of a range | Excel Worksheet Functions | |||
Excel VBA - Range(Selection, Selection.End(xlDown)).Name issue. | Excel Programming | |||
Creating range name for a range selection | Excel Programming |