View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
mate[_2_] mate[_2_] is offline
external usenet poster
 
Posts: 4
Default VB To Re-Name Worksheet Name

Thanks for the reply Tom, it was my mistake when typing - my name data
starts in A3 not A1.

The code as below works brilliantly when I adjusted to allow my my
initial error.
Activechart.name = worksheets("sheet2").Cells(n+2,1).Value

Thanks again.



Tom Ogilvy wrote:
Charts.Add
Activechart.name = worksheets("sheet2").Cells(n-2,1).Value


seems funny to get your data from row n+2 and your name from n-2, but that
is what your code does and where you said you wanted to retrieve the name.

--
Regards,
Tom Ogilvy