Results 1 to 2 of 2

Thread: Need help on VBA Programming

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    42

    Question Need help on VBA Programming

    Hi, I am very new to VBA programming. I only understand the fundamentals such as function/variable declaration and usage.

    Anyways, I am currently trying to write a VBA program with Excel to append already existing charts. Anyways, I was wondering if anyone can suggest a useful link on how to create/manipulate charts in VBA. More specifically I am using embedded charts.

    Currently I am trying to figure out the add method. I understand when creating embedded charts, you need to use the add method and specify the specific location for the newly created chart.
    Here is the code where the compiler is saying the subscript is out of range:
    Sheets("Create Chart").ChartObjects.Add Left:=50, _
    Top:=50, Width:=500, Height:=350

    Can anyone explain to me how the dimensions go about in relation to the excel sheet? Thank you very much for your time.

    -Mike

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178

    Re: Need help on VBA Programming

    The best way of starting is to record macros whilst doing things manually, you have then got some code that you can change.
    Regards
    BrianB
    -------------------------------

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