Thread: setSourcedata
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 6,953
Default setSourcedata

ab = ActiveCell.Address
Charts(1).SetSourceData Source:=ABCsheet.Range("A1:" & ab)

--
Regards,
Tom Ogilvy


"tony wong" wrote:

activecell is J113

how can i replace J113 with ab?

i don't know how to arrange the double quote. Thanks a lot.

ab = ActiveCell.Address
Charts(1).SetSourceData Source:=ABCsheet.Range("A1:J113")