+ Reply to Thread
Results 1 to 2 of 2

use vba to write vba for a chart sheet created on the fly

  1. #1

    use vba to write vba for a chart sheet created on the fly

    How do I write vba using vba for a chart sheet I have just created on
    the fly?
    I 've noticed excel gives the vbcomponent a different name to the chart
    name which makes it difficult to select the correct vbproject
    Thanks


  2. #2
    K Dales
    Guest

    RE: use vba to write vba for a chart sheet created on the fly

    Depends on how you create the chart sheet, but if with the Charts.Add method
    then
    Dim NewChart as Chart
    Set NewChart = Workbooks("WorkbookName").Charts.Add()

    Now use the variable NewChart to refer to the chart object, or use its .Name
    property if you need that.
    --
    - K Dales


    "[email protected]" wrote:

    > How do I write vba using vba for a chart sheet I have just created on
    > the fly?
    > I 've noticed excel gives the vbcomponent a different name to the chart
    > name which makes it difficult to select the correct vbproject
    > 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