• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Userform Graphic displays

Speedy

New Member
Hi,

I wish I could see the chart sheets in UserForm
I hope for a solution
 

Attachments

  • Chart in Userform.xlsm
    26.7 KB · Views: 9

Attachments

  • chart in userform Forum.xls
    59 KB · Views: 7
I have a solution and will post this in the next few days

upload_2015-5-27_23-49-9.png

Just tweaking...
 
Ok

See what you think about this
upload_2015-5-28_13-18-3.png

I have removed the Table and simply used Named Formula for the X and Y values, No need to display them unless you really want to

You can type any expression into the Formula Box
as well as set X Min, X max and X Increment values

Set the Temporary directory to something valid or else it will crash

The macro uses some code from Daniel Ferry at ExcelHero.com
http://excelhero.com/

which accesses the Microsoft WIA subsystem
https://msdn.microsoft.com/en-us/library/windows/desktop/ms630368(v=vs.85).aspx

Let me know what you think
 

Attachments

  • Chart in Userform2.xlsm
    69.1 KB · Views: 15
Hi, Hui

Very interesting is the formula used.
An example in this link: http://www.vertex42.com/ExcelArticles/evaluate-function.html

Useful the ability to rotate and scale the image that the code provides.


The chart that I attached was just an example, I need to display all the graphics on the sheet.
For charts on the sheet use
http://www.pcreview.co.uk/forums/copy-shape-image-into-image-control-t982606.html

Code:
ChartNum = Me.ListBox7.List(Me.ListBox7.ListIndex, 1)
Sheets(ListBox7.Value).Shapes(ChartNum).CopyPicture xlScreen, xlBitmap

With this code it avoids to save 1400 files that I can find in a file Xls Xlsm ecc
I wondered if it was possible to store the graphic chart on the card, I have to use the code you have proposed and to save and load the files of these cards
 
Your test file had 1 chart

If you want more send an appropriate file with appropriate instructions
 
Hi, Hui

I enclose a sample file with some graphics ...
I wish I could see all 221 graphics in UserForm
With this code, I see only 220
 
Hi, Hui
Your test file had 1 chart

If you want more send an appropriate file with appropriate instructions

I attach a file with some graphics as an example

I have used both methods to view all graphs present
Tips instructions to improve code search
 

Attachments

  • Dashboard Creation Examples.xls
    925.5 KB · Views: 9
Chart No. 7 on the A worksheet is a picture not a chart

Hi, Hui

I enclose a sample file with some graphics ...
I wish I could see all 221 graphics in UserForm
With this code, I see only 220
 
See attached

I have simplified the WIA code for you

It works well on the 220 charts
 

Attachments

  • Dashboard Creation Examples.xlsm
    508.2 KB · Views: 26
Back
Top