+ Reply to Thread
Results 1 to 2 of 2

Create Shape and add UserForm to it in Loop

  1. #1
    Registered User
    Join Date
    08-21-2018
    Location
    Germany
    MS-Off Ver
    MS Office 2016
    Posts
    24

    Create Shape and add UserForm to it in Loop

    Hi guys,

    my macro can create shapes in a for Loop. My UserForm has only a TextBox. The TextBox-Content should be variable.

    For x To 10
    1. Create Shape
    2. connect UserForm to Shape
    3. add to Connected UserForm TextBox-Content out of Array
    (UserForm1.text = ActiveWorksheet.Cells(1,x).value)
    Next x

    I have already the Creating Shapes For-Loop. But how can i add to each shape which create a UserForm with the right TextBox-Content.
    My Goal: User can click on a Shape and UserForm appears with individuell Information for the shape.
    I am a little bit frustrated. Maybe you have any idea.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525

    Re: Create Shape and add UserForm to it in Loop

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and click "manage attachments" to open the upload window.


    To add a file to a post

+ 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. How do I loop through two ranges to create a new shape?
    By CPILon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2018, 06:14 AM
  2. [SOLVED] Loop through a userform listbox & copy certain columns into txtboxes on userform loop next
    By mtilbury in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2016, 10:10 AM
  3. Position userform below a shape
    By JasperD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2015, 08:23 AM
  4. Shape loop recording Oleobjects
    By ericmax79 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-13-2013, 01:08 PM
  5. How to know which shape as triggered the userform
    By kebec_ska in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-31-2013, 11:26 AM
  6. Selecting the shape being info'ed and setting up a loop counter
    By leaning in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-23-2011, 04:47 PM
  7. [SOLVED] shape object on a userform?
    By Alan Ibbotson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2005, 09:06 AM

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