XL98: Using the LoadPicture Function with an Image Control (190191)
The information in this article applies to:
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q190191 SUMMARY
In Microsoft Excel 98 Macintosh Edition, you can add an Image control to a
user form. The following are two ways to specify which picture file is
displayed in the Image control:
- You can specify the picture at design time
-or-
- You can specify the picture at run time.
NOTE: 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 a sample Visual Basic for Applications macro that
uses the LoadPicture function to load a picture file into an Image control
during run time.
REFERENCES
For more information about the Image control, click the Office Assistant in
the Visual Basic Editor, type image control, click Search, and then click
to view "Things you can do with an Image control".
For more information about the Image control, from the Visual Basic Editor,
click the Office Assistant, type image control, click Search, and then
click to view "Things you can do with a picture on an Image control."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query, please
see the following article in the Microsoft Knowledge Base:
176476 OFF: Office Assistant Not Answering Visual Basic Questions
Modification Type: | Major | Last Reviewed: | 6/17/2005 |
---|
Keywords: | kbdtacode kbhowto kbProgramming KB190191 |
---|
|