+ Reply to Thread
Results 1 to 13 of 13

Inserting chart into user form

  1. #1
    Registered User
    Join Date
    11-04-2010
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    38

    Inserting chart into user form

    Good Day

    I have this userform whereby I want to insert a chart into, I have created the chart on a separate sheet.

    I have tried the normal copy and paste which does not work.

    I have attached my spreadsheet
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Inserting chart into user form

    You can't embed a chart in a userform, You have to save the chart as an image and load that file into an image control on the userform.

  3. #3
    Registered User
    Join Date
    11-04-2010
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    38

    Re: Inserting chart into user form

    HI Cytop

    I have knowledge on the image control part, how do I save chart as image?

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Inserting chart into user form

    Like every other general question on how to do something, a search engine is always the faster way to find information: http://www.google.co.uk/search?&q=ex...chart+as+image

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Inserting chart into user form


  6. #6
    Registered User
    Join Date
    11-04-2010
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    38

    Re: Inserting chart into user form

    Hi Logit

    Thanks for the link. Had a look at it, not sure where in my userform do I paste this code ?

  7. #7
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Inserting chart into user form

    In the VB Editor, right click on the Form Name (left pane window), VIEW CODE.

    Then paste the macro code there.

    You will need to edit the code to fit your project.

  8. #8
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: Inserting chart into user form

    HI Logit
    I copied and pasted the link as advised, but no image appeears

  9. #9
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Inserting chart into user form

    Please Login or Register  to view this content.

    If you post your workbook for review, it will be easier to troubleshoot for you. There may be other changes required than just those above.

  10. #10
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: Inserting chart into user form

    Hi Logit

    I have attached sample of file with code you suggested.
    I am still not seeing any chart on the userform
    Attached Files Attached Files

  11. #11
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Inserting chart into user form

    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Contributor
    Join Date
    04-14-2017
    Location
    South Africa
    MS-Off Ver
    Office 2010
    Posts
    148

    Re: Inserting chart into user form

    Hi Logit

    Sorry for the late response. Your assistance is greatly appreciated.
    Thanks for your help. Worked....

  13. #13
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,009

    Re: Inserting chart into user form

    You are welcome. Thank you.

    Cheers

+ 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. [SOLVED] User Form to execute search and return all values to the user form for editing
    By allwrighty in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-11-2013, 10:40 PM
  2. VBA for inserting an image into the comment box via user form
    By antonymiller in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-19-2012, 11:39 AM
  3. inserting a form or linked field into a chart
    By pjiman1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-30-2008, 01:08 PM
  4. Can a chart be displayed on a user form ?
    By pninja005 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2006, 09:36 AM
  5. Copying a chart to a user form
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2006, 10:35 PM
  6. [SOLVED] how to load chart in user form
    By Ahmed El Hadary in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-07-2005, 10:05 AM
  7. How to insert OLE chart into a user form?
    By thesaint in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-06-2005, 05:26 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