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

I tried this:

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

Hoping that it would create a named range "(Worksheet)EjectaX" but
get a "Name is not valid" error when I try to run the macro

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