Results 1 to 9 of 9

Thread: [RESOLVED] Saving an Excel file using VB6

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Posts
    84

    Re: Saving an Excel file using VB6


    I did add the part you advised and changed the selection to ChartArea instead of PlotArea, but no success yet.
    Code:
    With ActiveChart
            .HasTitle = True
            .ChartTitle.Characters.Text = "All Cases"
            .HasLegend = True
            .Legend.Font.ColorIndex = 5
        End With
    Code:
    .ActiveChart.ChartArea.Select

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 2007
    Posts
    84

    Re: Saving an Excel file using VB6


    It was only the OLE object need to be resized in order to display everything. Thank your very much westconn1.

  3. #3
    Frenzied Member
    Join Date
    Jul 2007
    Posts
    1,306

    Re: [RESOLVED] Saving an Excel file using VB6

    Hey NightHeart, something I want to say about your code.
    You have used Active Chart and Workbook in your code. I also used this before Si_the_Geek pointed out its not good to use them. See the following

    http://www.vbforums.com/showthread.php?t=391665
    http://www.vbforums.com/showthread.php?t=485465 Post # 5

    So I suggest you change your code to avoid them

    IIF(Post.Rate > 0 , , )

Posting Permissions

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



Click Here to Expand Forum to Full Width