WiseOwl Training - Established 1992 Wise Owl Training

Established May 1992
30 years in business
Wise Owl Training
30 years in business
See 529 reviews for our classroom and online training
How to create autoshapes, lines and connectors in VBA macros
Part eight of an eight-part series of blogs

You can use Visual Basic within Excel, PowerPoint or Word to draw shapes, format them and even assign macros to run - this long blog gives lots of ideas of how to proceed!

  1. Working with shapes in VBA
  2. Working with shapes - getting started
  3. Naming, referring to and positioning shapes
  4. Formatting shapes and adding text
  5. Adding lines and connectors to join shapes together
  6. Working with multiple shapes
  7. Assigning macros to shapes
  8. Exercises on shapes (this blog)

This is one small part of our free online Excel VBA tutorial.  To find out how to learn in a more structured way, have a look at our training courses in VBA.

Posted by Andy Brown on 25 January 2014

You need a minimum screen resolution of about 700 pixels width to see our blogs. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Exercises on shapes

If you've read this far, you'll be wanting to try your hand at some "real life" examples!  You can find 3 exercises of varying difficulties on shapes here.

You can download any files that you need to do these exercises using the links above - to get the answers you'll need to attend a Wise Owl VBA course!

If you want to learn VBA in a classroom environment, take a look at one of our VBA courses:

Alternatively, call or email us about arranging your own tailored course in writing macros in VBA.

This blog has 0 threads Add post