+ Reply to Thread
Results 1 to 3 of 3

entering a worksheet formula into a chart title through vba

  1. #1
    Registered User
    Join Date
    12-10-2008
    Location
    Aberdeen
    MS-Off Ver
    MS365 VER 2308
    Posts
    89

    entering a worksheet formula into a chart title through vba

    I have a spreadsheet that among other things, creates a chart every time I run a particular VBA routine.

    I know I can manually click on the chart title and then click in the formula bar to make the title refer to a cell contents, thus making the title "auto-updating", but because I have just dynamically "created" the chart, I need to be able to do this through VBA. (Obviously can't ask each user to do the formula bar thing!)

    I can't simply enter the worksheet formula (eg "='sheet1'!A1") into the ChartTitle.Characters.Text property as it simply shows as text, so I need to programmatically do the same thing as entering it into the formula bar.

    Just can't work out how.

    Any tips?

    thanks
    Guy

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

    Re: entering a worksheet formula into a chart title through vba

    try this to link to A1 on Sheet1

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    12-10-2008
    Location
    Aberdeen
    MS-Off Ver
    MS365 VER 2308
    Posts
    89

    Re: entering a worksheet formula into a chart title through vba

    yip, silly me.

    thanks Andy

    Guy

+ 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