+ Reply to Thread
Results 1 to 3 of 3

Find & Replace Within A Chart

  1. #1
    Forum Contributor
    Join Date
    09-28-2007
    Location
    New York, NY
    MS-Off Ver
    2007
    Posts
    120

    Find & Replace Within A Chart

    I'm trying to write a function that goes through each data series in an active chart and finds and replaces relevant text in the =SERIES string. I've got the below so far, but it gives me an error at DataSeries.Formula = sNewDataStr. Any idea why?

    Thanks!
    -JR

    Please Login or Register  to view this content.
    Last edited by MCCCLXXXV; 05-05-2011 at 08:08 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Find & Replace Within A Chart

    I assume the error is caused by the final formula being invalid.

    Without seeing the variable content impossible to say.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    09-28-2007
    Location
    New York, NY
    MS-Off Ver
    2007
    Posts
    120

    Re: Find & Replace Within A Chart

    Ha! As I was going to reply with the state of the variables right before the error hit, i realized that the type of sNewDataStr was variant/string (Cur was just string). I hadn't declared the sNewDataStr! So I did that and it worked lol. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1