View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
abcd[_3_] abcd[_3_] is offline
external usenet poster
 
Posts: 17
Default worbook.name not accepting range value

I do not know exactly what happends but do try first those syntax:

myworkbook.Names.Add Name:=NameRef, RefersTo:=PivotSourceData

or

myworkbook.Names.Add (NameRef, PivotSourceData)


and also check taht the sourceworksheet is set ok