Results 1 to 2 of 2

Automatically update graph range based on date in column

Threaded View

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    Somerset, England
    MS-Off Ver
    365
    Posts
    13

    Automatically update graph range based on date in column

    I want a macro that will check each cell from A2 downwords and once the date = today or higher i.e. the latest to extend the maximum range of a chart.....

    Sub autodate()
    Range("A2").Select
    If Activecell.value= <[today]
    Move to next cell
    
    Else
        Sheets("Chart2").Select
        ActiveChart.ChartArea.Select
        ActiveChart.Axes(xlCategory).Select
        ActiveChart.Axes(xlCategory).MaximumScale = Sheet1!.ActiveCell.
    
    End if
    End Sub
    I know theres alot wrong in the above, but hopefully it gives you the general jist
    Attached Files Attached Files
    Last edited by basalisbury; 04-05-2012 at 10:39 AM. Reason: Add attachment

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