+ Reply to Thread
Results 1 to 3 of 3

VBA Code Insert multiple shapes based on cell value

  1. #1
    Registered User
    Join Date
    02-27-2024
    Location
    Johor, Malaysia
    MS-Off Ver
    365
    Posts
    5

    VBA Code Insert multiple shapes based on cell value

    Hi, I'm new in VBA.
    I am trying to insert rectangle shapes x amount of times based on cell input.

    Example: cell a1 has 3 entered, make 3 rectangles, if cell a1 has 6 entered, make 6 rectangles.

    Can anyone here help me provide the code?

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: VBA Code Insert multiple shapes based on cell value

    Something like this...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,427

    Re: VBA Code Insert multiple shapes based on cell value

    Pls try this code
    Please Login or Register  to view this content.

+ 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. Positioning multiple shapes based on cell values
    By scott_od in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2021, 02:23 AM
  2. Making VBA Macro to make shapes disappear if cell has certain value (Multiple Shapes)
    By Nicholaes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-29-2019, 06:33 PM
  3. Insert and modify shapes - Inefficient code
    By SIMBAtheCAT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2014, 10:22 PM
  4. Please Help: Resize multiple shapes in the same sheet based on cell value
    By BartekKonopka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2013, 02:27 PM
  5. VBA to Show/Hide multiple shapes based on cell values
    By Mike_Taylor16 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-22-2013, 03:29 PM
  6. Excel 2007 : Insert Shapes based on Values
    By ramalingamr in forum Excel General
    Replies: 2
    Last Post: 11-10-2009, 10:21 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