+ Reply to Thread
Results 1 to 3 of 3

Create Textbox based on the postion of the picture

  1. #1
    Registered User
    Join Date
    04-27-2013
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2010
    Posts
    3

    Create Textbox based on the postion of the picture

    Hi Guys,
    I have managed to place the textbox above the picture as i have desired but the textbox is placed on the top-right corner of the picture.

    The intend is to place the textbox on the Bottom-right of the picture (as shown in the sample document)


    The code I created is below for your reference:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Create Textbox based on the postion of the picture

    Try:
    Please Login or Register  to view this content.
    Note: the above puts the boxes below the images. If you want them overlaying the images, change:
    Set Shp = ActiveDocument.Shapes.AddTextbox(1, fcnXCoord(oILShp), fcnYCoord(oILShp), 50, 36)
    to:
    Set Shp = ActiveDocument.Shapes.AddTextbox(1, fcnXCoord(oILShp), fcnYCoord(oILShp) - 36, 50, 36)
    Last edited by macropod; 02-03-2014 at 10:10 PM.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Create Textbox based on the postion of the picture

    Cross-posted at: http://www.vbaexpress.com/forum/show...of-the-picture
    For cross-posting etiquette, please read FORUM RULE 8: http://www.excelforum.com/forum-rule...rum-rules.html

+ 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. [SOLVED] Delete row macro based on a specific character in the FIRST postion of a specified column
    By slawless in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-21-2012, 07:38 AM
  2. Replies: 2
    Last Post: 10-26-2012, 07:59 AM
  3. [SOLVED] macro: insert picture based on workbook location, not picture root path.
    By NicksDad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2012, 07:47 AM
  4. [SOLVED] Cannot place a picture again in another textbox
    By Yogi28 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2012, 10:44 PM
  5. Copy as Picture; Textbox location
    By mkaake in forum Excel General
    Replies: 9
    Last Post: 09-18-2008, 10:22 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