+ Reply to Thread
Results 1 to 3 of 3

Position text boxes based on table of text box parameters

  1. #1
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Thumbs up Position text boxes based on table of text box parameters

    With the following code i'm trying to copy and paste text boxes (shapes) from one sheet to another, however i want to locate the text boxes based on values on another sheet, for example, below is an abbreviated list from sheet named "TextBoxes".

    I also want to dynamically set the array to the text box names list in column A of the sheet named "TextBox", see attached image below for text box table

    textboxtable.PNG

    So the text boxes are copied from sheet named "Data", then pasted onto sheet named "Planning", then the location of the text box is defined by corresponding text box name in columns B thru E on the sheet named "TextBox"

    It would appear that i'm having difficult setting the array, and i know that the method to set the text box location isn't correct either.

    Any help would be appreciated

    Please Login or Register  to view this content.
    Last edited by jprlimey; 04-11-2014 at 11:49 AM. Reason: Solved

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Position text boxes based on table of text box parameters

    Please Login or Register  to view this content.
    You need to make sure the values in the table are setting the correct properties of the shape.
    According to the table the first value is Left but you set the shapes Top property.
    The tables second value is Right which is probably just a typo.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    12-22-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2007 & 2010
    Posts
    205

    Re: Position text boxes based on table of text box parameters

    Andy,

    You are a genius!!

    The solution worked great. I did end up changing the text box naming routine to capture Left, Top, Height and Width and everything worked perfectly.

    Thanks vey much for your help.

+ 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. Replies: 1
    Last Post: 02-19-2014, 10:04 PM
  2. Using the If function to set parameters on Text and Combo boxes on a userform
    By jtemp57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-14-2014, 11:42 AM
  3. Replies: 2
    Last Post: 02-19-2010, 03:55 PM
  4. [SOLVED] Text boxes Excel 2003 change position in print preview
    By James McCann in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-26-2006, 07:00 PM
  5. [SOLVED] XL97: Position text boxes (or data labels) w/out VBA
    By LeAnne in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 12-01-2005, 05:10 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