Results 1 to 2 of 2

Thread: Picture in a dialog box for Excel

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2003
    Posts
    1

    Picture in a dialog box for Excel

    Hi there,

    I'm new to VBA and am stuck in Excel trying to insert an existing chart into a custom dialog box in a DialogSheet. I want to insert it as a picture so users can see it but not do anything with it. One way that sort of worked is just

    Workbooks(ref).Worksheets("Charts").ChartObjects(1).Copy
    Workbooks(ref).DialogSheets("plot").PasteSpecial

    Problem is that then I seem to have no control over the size of the picture, or where it appears in the dialog box.

    Any assistance with either a better way of getting the picture into the dialog sheet, or with simply controlling the size and position, is much appreciated

    David.

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    Try Alt + PrintScreen keys to put the image on the clipboard then paste into a picture application like MS Paint. Save as .bmp file or whatever.

    In the dialog box use the image tool.
    Regards
    BrianB
    -------------------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width