+ Reply to Thread
Results 1 to 8 of 8

How to set default line thickness for drawing an arrow or line

  1. #1
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    How to set default line thickness for drawing an arrow or line

    If I want to draw a line or an arrow, the default thickness is set to 0.75, and the default color is blue. Is there a way to change these?

    Thanks
    You either quit or become really good at it. There are no other choices.

  2. #2
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How to set default line thickness for drawing an arrow or line

    Please Login or Register  to view this content.
    If it is a shape line. If a Chart object then you use the parent of the line instead of Shapes.
    Any code provided by me should be tested on a copy or a mock up of your original data before applying it to the original. Some events in VBA cannot be reversed with the undo facility in Excel. If your original post is satisfied, please mark the thread as "Solved". To upload a file, see the banner at top of this page.
    Just when I think I am smart, I learn something new!

  3. #3
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: How to set default line thickness for drawing an arrow or line

    Quote Originally Posted by JLGWhiz View Post
    Please Login or Register  to view this content.
    If it is a shape line. If a Chart object then you use the parent of the line instead of Shapes.
    Great! That works well for formatting the line after it has been drawn (it is a 'shape' line). Is there anyway to impose this formatting prior to the line being drawn so that it is drawn at a pre-determined thickness?

  4. #4
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How to set default line thickness for drawing an arrow or line

    Quote Originally Posted by luv2glyd View Post
    Great! That works well for formatting the line after it has been drawn (it is a 'shape' line). Is there anyway to impose this formatting prior to the line being drawn so that it is drawn at a pre-determined thickness?
    You do it when you create the shape or line.
    example:
    Please Login or Register  to view this content.
    Syntax might need some clean-up, but this should give you the gerneral idea. Open your vb editor, click on help and in the search box type 'Shapes.Add' to get more details.

  5. #5
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: How to set default line thickness for drawing an arrow or line

    I'm I actually have to hand-draw the shapes to take notes on what's recorded in the workbook, so can't use preset parameters for shape dimensions, just wanted to see if the default line thickness can be changed before I hand draw lines, arrows....

  6. #6
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How to set default line thickness for drawing an arrow or line

    Quote Originally Posted by luv2glyd View Post
    I'm I actually have to hand-draw the shapes to take notes on what's recorded in the workbook, so can't use preset parameters for shape dimensions, just wanted to see if the default line thickness can be changed before I hand draw lines, arrows....
    I think you have to use the Format Shape method after the shape is drawn in Excel. But if you are going to use more than one of the same shape, you can copy the first one after you set the line width and then drag the copy to where you want it and adjust the length by dragging the node points on either end.

  7. #7
    Valued Forum Contributor luv2glyd's Avatar
    Join Date
    07-13-2008
    Location
    Seattle, WA, US
    MS-Off Ver
    Excel 2010
    Posts
    679

    Re: How to set default line thickness for drawing an arrow or line

    Ok. Sounds that good. Thanks a lot for your help.

  8. #8
    Forum Expert JLGWhiz's Avatar
    Join Date
    02-20-2011
    Location
    Florida, USA
    MS-Off Ver
    Windows 10, Excel 2013
    Posts
    2,070

    Re: How to set default line thickness for drawing an arrow or line

    Quote Originally Posted by luv2glyd View Post
    Ok. Sounds that good. Thanks a lot for your help.
    You are welcome.
    regards, JLG

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drawing a line on all column
    By bbke in forum Excel General
    Replies: 1
    Last Post: 04-07-2015, 12:40 PM
  2. Border line thickness on image or label
    By brewsi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-25-2015, 09:44 AM
  3. Line Drawing gives Doulble Line
    By Hercules1946 in forum Excel General
    Replies: 3
    Last Post: 11-04-2012, 08:15 AM
  4. Plot line thickness
    By pvfoukal in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-02-2011, 09:28 PM
  5. Line Thickness in Line Chart
    By DrDoug in forum Excel General
    Replies: 1
    Last Post: 03-14-2009, 07:26 AM
  6. Replies: 4
    Last Post: 11-10-2008, 04:18 PM
  7. [SOLVED] can i have a line with arrow?
    By geowayhu in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 10-09-2005, 01:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1