setSourcedata

T

tony wong

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")
 
T

Tom Ogilvy

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top