+ Reply to Thread
Results 1 to 6 of 6

Enter dimensions and have excel draw rectangle

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Enter dimensions and have excel draw rectangle

    I want to find a way to be able to enter a length and width and have excel draw a box representative of these dimensions. Does anyone know how I can do this?

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Enter dimensions and have excel draw rectangle

    Here is an example:


    Please Login or Register  to view this content.
    The numerical values are in units of pixels.
    Gary's Student

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Enter dimensions and have excel draw rectangle

    Thanks, I was able to run that and get it to work, along with change the size. However, I want to be able to enter a length and width in feet or or inches into a cell and then have the box appear (all I need is the outline of a box). This is my first time working with developer so any directions would be very helpful.

  4. #4
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Enter dimensions and have excel draw rectangle

    That is not easy...........I could give you code for a Message Box to popup and allow you to enter the dimensions, but they would be in points. To convert to inches, we would need more details on your monitor, zoom level, etc.

  5. #5
    Registered User
    Join Date
    09-19-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Enter dimensions and have excel draw rectangle

    Ok, I think I am in over my head here and should try another route. Thanks though

  6. #6
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Enter dimensions and have excel draw rectangle

    Update this post if you want to continue.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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