+ Reply to Thread
Results 1 to 1 of 1

Display chart on userform

  1. #1
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Display chart on userform

    Hi

    I've been challenged to display chart (live if possible) on userform.
    I think solution can be handy for somebody so here is simple tutorial (of course type of chart or anything can be changed according to requirements):

    1. Based on data like this:

    A
    B
    C
    D
    E
    1
    CODE
    DONE
    PLAN
    %
    to do
    2
    101482
    103
    555
    19%
    452
    3
    101340
    365
    1032
    35%
    667
    4
    101466
    349
    1050
    33%
    701
    5
    101137
    294
    841
    35%
    547


    on separate sheet we can create chart for it:

    Name:  charrt.JPG
Views: 307
Size:  140.4 KB

    size does not matter because later on we rescale ii to fit into userform and we can hide this tab (in excel or by VBA).

    2. In VBE we create userform with image control on it, like below:

    Name:  userform.JPG
Views: 242
Size:  18.1 KB

    again size of form and control does not matter, we'll resize it later.


    3. On UserForm code we can place:

    Please Login or Register  to view this content.

    4. Now we have to use macro which save our chart into disk and display inside our form:
    Please Login or Register  to view this content.
    5. SaveChart macro can be assign into button, Voila!

    In attached file you can find additionally macro which simulate data changes and display live changes on chart.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ 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. Replies: 2
    Last Post: 05-24-2016, 05:27 AM
  2. Display Chart on the userform
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2014, 10:19 AM
  3. [SOLVED] Display dynamic chart in UserForm
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-27-2014, 07:33 PM
  4. Display chart in userform using Access data
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-28-2014, 11:07 AM
  5. UserForm help - display list of open workbooks except workbook userform code is in
    By kensweep in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-09-2014, 12:26 PM
  6. combining chart userform and data transfer userform into 1 userform
    By H_Kennedy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2014, 12:28 PM
  7. Replies: 1
    Last Post: 02-14-2005, 11:06 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