Hi, When I tried it in XL2003, the macro recorder gave:
ActiveSheet.Shapes.AddLine(431.25, 188.25, 678#, 423.75).Select Try pasting that into xl2007 and see what you get. Regards - Dave. > Date: Thu, 22 Jul 2010 09:07:29 -0700 > Subject: $$Excel-Macros$$ Inserting a Vertical Line > From: steve.slec...@gmail.com > To: excel-macros@googlegroups.com > > I've been trying to use the macro recorder to capture the code on > inserting a vertical line from the Insert-->Shapes part of the menu in > Excel 2007. For some reason it appears that the recorder does not > capture drawing tools. > > I want to be able to place a line through VB and control the length, > width, location, angle, etc. > > Does anyone have any code snippets on doing this? > > Thank You. > > -- > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links : > http://twitter.com/exceldailytip > 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials at http://www.excel-macros.blogspot.com > 4. Learn VBA Macros at http://www.quickvba.blogspot.com > 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > HELP US GROW !! > > We reach over 7000 subscribers worldwide and receive many nice notes about > the learning and support from the group.Let friends and co-workers know they > can subscribe to group at > http://groups.google.com/group/excel-macros/subscribe _________________________________________________________________ Browse profiles for FREE! Meet local singles online. http://clk.atdmt.com/NMN/go/150855801/direct/01/ -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 7000 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe