+ Reply to Thread
Results 1 to 5 of 5

VBA code to create a chart for every company`s Temperatures

  1. #1
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    769

    VBA code to create a chart for every company`s Temperatures

    Hello Everybody,
    Could your help me in my question ,please?
    Please help me to create this vba code because these chart takes me multiple hours to create and update and you will make me save a lot of time.
    A brief about the file :
    -The file is about a store which contains 2 materials distributed to lots of rooms.We record temperatures for every material in room. And I created a report for every company`s temperatures.
    Question:
    -I want to create a chart for every company`s Temperatures.
    The chart properties:
    1-The chart Title Should be Like this : "Company 1(Material 1)" and chart name should be like this "company 1"
    2-I need to add a series for each room with the name of the room only ,like this: "2-1"
    3-I created a formula to determine the series data and titles on columns F&G
    4-The vertical axis should start from 1 not zero
    5-The horizontal axis minimum should be taken only from column E "Start Date", and maximum is found on cell "A1".
    6-All charts series types are scatter ,limit series is line with red color and width of 2 pt.
    7-Legend should be placed in the bottom of the chart.
    8-Chart size is 5.28" height and 7.55" width.
    see the attachment for an example for the chart.
    I really appreciate any help.
    Thanks in advance
    Attached Files Attached Files
    Last edited by leprince2007; 04-09-2021 at 07:46 AM.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,178

    Re: VBA code to create a chart for every company`s Temperatures

    tho your data looks good for humans, it is not best for data storage to run analysis.
    It should be normalized & stored as:
    room, co, material, date, temp


    then excel or other databases can chop it up for analysis be it charts or reports.

  3. #3
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    769

    Re: VBA code to create a chart for every company`s Temperatures

    I created columns F & G to help creating charts. I can delete columns from D to I but except column e "Start date".
    columns from j to the last column are temperatures and cannot be deleted.
    The problem is that every room has a start date and the actual temperatures can start from previous date. And I need to make chart from the start date only.

  4. #4
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    769

    Re: VBA code to create a chart for every company`s Temperatures

    Ideleted the useless columns and attached the file again
    Note:
    I need to make chart for every company only Starting from "Start date" in column D .
    The end of the chart is the date mentioned in cell A1
    Attached Files Attached Files
    Last edited by leprince2007; 04-09-2021 at 05:23 PM.

  5. #5
    Forum Contributor
    Join Date
    02-24-2015
    Location
    Egypt
    MS-Off Ver
    Office 365 ProPlus
    Posts
    769

    Re: VBA code to create a chart for every company`s Temperatures

    Is there any help?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. need vba code to split rows to closed wb shets depends company code met with sht name
    By julielara in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-18-2016, 12:44 PM
  2. Create a new column with company name which is embedded in email name
    By ajang in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-13-2014, 01:10 AM
  3. vba code to create chart and fix the axis of the chart
    By Sushil.thakur in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2013, 06:14 AM
  4. Replies: 7
    Last Post: 12-25-2012, 08:54 PM
  5. formatting a company chart
    By theharlequin in forum Excel General
    Replies: 0
    Last Post: 08-18-2011, 10:33 AM
  6. 3 Company:Stacked Bar Chart
    By That_Girl in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-04-2007, 08:39 AM

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