+ Reply to Thread
Results 1 to 5 of 5

How to add to existing chart title and loop through

  1. #1
    Registered User
    Join Date
    05-25-2014
    Posts
    34

    How to add to existing chart title and loop through

    Hi,

    I have the following code:

    Please Login or Register  to view this content.
    I would like to add whats in busUnitList array for each title in the graphTabList array. So Each tab would have a businessunitList infront of its existing chart title.

    Can someone please help?

    Thanks

  2. #2
    Registered User
    Join Date
    05-25-2014
    Posts
    34

    Re: How to add to existing chart title and loop through

    Hi,

    So this is the code that I have so far, it doesn't throw any errors but doesn't exactly do what I want.

    It makes sense to me but for somereason it does't work.

    Please Login or Register  to view this content.
    Any idea why?

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

    Re: How to add to existing chart title and loop through

    What is busUnit in you dotitles routine?

    Also I think your Replace function has the wrong argument values.

    Replace(expression, find, replace[, start[, count[, compare]]])

    The Replace function syntax has these named arguments:

    Part Description
    expression Required. String expression containing substring to replace.
    find Required. Substring being searched for.
    replace Required. Replacement substring.
    start Optional. Position within expression where substring search is to begin. If omitted, 1 is assumed.
    count Optional. Number of substring substitutions to perform. If omitted, the default value is –1, which means make all possible substitutions.
    compare Optional. Numeric value indicating the kind of comparison to use when evaluating substrings. See Settings section for values.
    Once you have proper value in busUnit then you should just be able to concatenate the text
    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    05-25-2014
    Posts
    34

    Re: How to add to existing chart title and loop through

    Thanks for that Andy Pope,

    So I have done an array with the values in busUnit but still no outcome.

    Please Login or Register  to view this content.
    any advice???

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

    Re: How to add to existing chart title and loop through

    You can't use the whole array as prefix to chart title. You need to specify which item in busUnit to use.

    for example

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Update Chart Title using slicer to filter chart
    By redil855 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2014, 10:18 AM
  2. Excel 2007 - how do youadd a title to an existing line scatter graph?
    By hillctrytex in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 07-11-2013, 12:58 PM
  3. [SOLVED] Search Chart in worksheet by chart title and delete it
    By rename in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-17-2012, 11:20 PM
  4. [SOLVED] Excel chart - how to assign the file name in the chart title?
    By TGreen in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-16-2005, 06:05 AM
  5. [SOLVED] Pasting Objects into Chart title and Axis title
    By Sam in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-06-2005, 04:05 PM

Tags for this Thread

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