Consulting

Results 1 to 4 of 4

Thread: Solved: Format trend line dialog box

  1. #1

    Solved: Format trend line dialog box

    I am trying to get the format trend line dialog box that is built into the Excel Charting features to open by a macro command.

    The clipboard window will open by macro cammand. Does anyone know how to do this or if it cannot be done.

    Thanks

    Not So Smart
    Last edited by Not So Smart; 06-25-2008 at 04:21 PM.

  2. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    In xl2003, assuming trendline is selected.

    [vba]
    application.CommandBars.FindControl(ID:=917).Execute
    [/vba]
    Cheers
    Andy

  3. #3
    Thanks Andy

    I just ran accross some code that works in the V2007

    ActiveChart.SeriesCollection(1).Select 'the data points must be selected for the dialog box to open.
    Application.Dialogs(xlDialogChartTrend).Show

    I am in good shape now & want to post this to others who may need it.

  4. #4
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    Okay but those display 2 different dialogs.
    Notice the Patterns tab is not available with that built-in dialog.
    Cheers
    Andy

Posting Permissions

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