R
Rolf Marvin Bøe Lindgren
I'm fairly new to drawing objects in Excel from VBA, and have stumbled
on a peculiar issue. the variable msoShapeRectangle, which apprarently
is suppoed to be predefined, is not declared.
I've recorded the following from Excel:
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 303#, 48#, 255#,250.5)._
Select
compliation is aborted with the error message "msoShapeRectangle :
Variable not defined". if I don't set "Option Explicit" it compiles,
but the value of msoShapeRectangle is Empty. it is used in another
worksheet programmed by somebody else and it works perfectly there.
the variable msoTrue is also undefined.
this is Excel 10 (Excel 2002).
any clues?
thank you,
on a peculiar issue. the variable msoShapeRectangle, which apprarently
is suppoed to be predefined, is not declared.
I've recorded the following from Excel:
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 303#, 48#, 255#,250.5)._
Select
compliation is aborted with the error message "msoShapeRectangle :
Variable not defined". if I don't set "Option Explicit" it compiles,
but the value of msoShapeRectangle is Empty. it is used in another
worksheet programmed by somebody else and it works perfectly there.
the variable msoTrue is also undefined.
this is Excel 10 (Excel 2002).
any clues?
thank you,