View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
GerbilGod7[_3_] GerbilGod7[_3_] is offline
external usenet poster
 
Posts: 1
Default Dynamic Range Chart Macro Question

After some tweaking, I've gotten it to work, sorta... Here's what
use:

ws.Names.Add Name:=ws.Name & "!EjectaX", RefersTo:="OFFSET('" & ws.Nam
& "'!$J$1,'" & ws.Name & "'$S$2,0,'" & ws.Name & "'!$S$7-'" & ws.Name
"'!$S$2,1)"

In each worksheet, it creates a named range with this name:

EjectaX ...[bunch of spaces]... (worksheet name)

I'm not sure why it's doing this; I've tried:

"'" & ws.Name & "'!EjectaX" etc, but it doesn't make a difference.

How do I get it to name these ranges properly, and ultimately grap
them

--
Message posted from http://www.ExcelForum.com