Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drawing a box or rectangle in excel

Status
Not open for further replies.

bigracefan

Programmer
Apr 2, 2002
304
US
I need to create an excel sheet with a simple box somewhere on the sheet(through code of course). Any ideas?

Pete
 
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 265.5, 153#, 240.75, 121.5).Select

Is a recording of adding a rectangle to the sheet. Any other alterations you want, just use the macro recorder to see the syntax.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top