+ Reply to Thread
Results 1 to 2 of 2

Excel 2010 adding shapes to a form manually during design time

  1. #1
    Registered User
    Join Date
    02-25-2015
    Location
    Pennsylvania, U.S.A.
    MS-Off Ver
    Office 2010
    Posts
    1

    Excel 2010 adding shapes to a form manually during design time

    Ok,
    This may seem like a simple question, but I'm obviously missing something. I have seen plenty of posts on how to add shapes to a form dynamically using code, but I just want to draw some items manually on a custom form in the VB environment of Excel 2010.

    In Visual Studio 2010, the VB environment there contains in its Toolbox a "Power Packs" section that contains a LineObject, OvalObject, and RectangleObject, that I can click and drag onto a form, but I can't seem to find these in the Excel VB environment. I understand that the Excel VB environment is not the same as my Visual Studio, because the syntax between the 2 is slightly different. (I think VS is using VB.Net while the Excel code is not).

    So if anyone can please help me from feeling like an idiot and tell me how to draw graphical items other than just what is on the basic ToolBox on a form in Excel, it would be greatly appreciated. As a follow up to this, how about polygons, arcs or pie shapes? Not everything is just a line, an oval, or a rectangle.

    Thanks.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Excel 2010 adding shapes to a form manually during design time

    Hi DHeshMan and welcome to ExcelForum,

    Actually, it is not a simple question at all.

    I'm not sure if it's possible to do what you want manually.

    See the following, thanks to Andy Pope who has written some super amazing code over the years: http://www.andypope.info/vba/userformdraw.htm

    Lewis
    Last edited by LJMetzger; 02-25-2015 at 09:29 PM.

+ 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. Adding controls at design time through code
    By UpSkill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-31-2014, 05:42 AM
  2. Stopping movement of shapes excel 2010
    By calibra in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-08-2013, 12:35 AM
  3. [SOLVED] Excel 2010 Shapes Issue
    By Mike_e in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-30-2013, 05:20 AM
  4. Adding date and time picker on the Excel form
    By ThePower777 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:44 PM
  5. Changing form properties in design time
    By pmguerra in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-13-2009, 10:40 AM

Tags for this Thread

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