XL2000: Using the LoadPicture Function with an Image Control (213732)
The information in this article applies to:
This article was previously published under Q213732 SUMMARY
In Microsoft Excel 2000, you can add an image control to a user form. There
are two ways to specify which picture file is displayed in the image control; you can specify the picture when you design the user form, or you can specify the picture when you run the user form. The technique you use depends on whether you want to store the picture file with your project.
The advantage of using the run-time method is that the picture file is not
stored with the project, which minimizes the size of the project. However,
if you distribute the project to others, you must remember to include the
picture file with the project file, and you must provide instructions for
placing the picture file in the correct location.
This article provides an example Visual Basic for Applications macro that
uses the LoadPicture function to load a picture file into an image control during run time.
REFERENCESFor more information about using an Image control, click Microsoft Visual Basic Help on the Help menu, type image control in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB213732 |
---|
|