XL: Sample Macro to Add or Place Object in Relation to a Range (142586)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for the Macintosh 5.0
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q142586 SUMMARY
When you add objects to a worksheet using a Microsoft Visual Basic for
Applications procedure, you need to specify the coordinates of the new
object, in points, relative to the upper-left corner of cell A1 on a
worksheet as well as the height and width of the object. Note, however,
that you can add objects and make their position relative to a specified
range by using the corresponding Top, Left, Width, and Height properties of the Range object.
NOTE: One point is approximately equal to 1/72 inch.
REFERENCES
For additional information about getting help with Visual Basic for
Applications, please click the article number below to view the article in the Microsoft Knowledge Base:
163435
VBA: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto KB142586 |
---|
|