+ Reply to Thread
Results 1 to 3 of 3

How to set MyRange if i have dynamic range for dynamic chart

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Sibiu
    MS-Off Ver
    Excel 2003
    Posts
    2

    How to set MyRange if i have dynamic range for dynamic chart

    Need help to set “MyRange” if i have dynamic source for dynamic chart in vba
    Start from columns H
    columns filled H,I,J,K,L,M,N,O,P,Q …….
    Lastcol = Q in this moment
    Used columns for chart is H + 2
    ex: H, J, L, N, … until Lastcol -1
    For next time the lastcol will be S and used R

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Dbmaryleo; 12-14-2012 at 06:43 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: How to set MyRange if i have dynamic range for dynamic chart

    I'm not sure what cell selection you want to trigger on. Below updates the chart when you select cells H3,H4, or H5 in your example workbook.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-21-2012
    Location
    Sibiu
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: How to set MyRange if i have dynamic range for dynamic chart

    For beginning thanks for help
    Selected cell is G3 or G4 or random rows from column G , until G & last row (Target.Column = 7 & Target.Row> 2)
    code works perfectly for range needed (strX, stry)
    I am novice with VBA programming language, for that I need your help with formula
    For that I chose each time to create a new chart, when I have a new selection should be removed for regeneration Chart
    In your formula how should I do??
    ...
    currently my formula looks like this, but I met a problem
    for more rows added, If i select a row below in the sheet i will not see the chart in the same area where is row

    Please Login or Register  to view this content.
    Last edited by Dbmaryleo; 12-17-2012 at 07:08 AM. Reason: Change status

+ 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