+ Reply to Thread
Results 1 to 4 of 4

VBA Help Object Placement

  1. #1
    Registered User
    Join Date
    08-13-2018
    Location
    taylor mill, kentucky
    MS-Off Ver
    2010
    Posts
    61

    VBA Help Object Placement

    Hey guys I have this code to upload objects via a button. However I need help with the placement aspect of this code.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA Help Object Placement

    What placement? Where?
    If it's on a worksheet you can set the top the same as the specif cell top or cell top + cell height
    The same with the left , you only indicate the top and left coordinates where the object must start, the width and height is another matter.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    08-13-2018
    Location
    taylor mill, kentucky
    MS-Off Ver
    2010
    Posts
    61

    Re: VBA Help Object Placement

    So when I recorded a macro to try to see how the code would be written.
    There is a piece that is
    Please Login or Register  to view this content.
    Allowing the object to move and size with the cell reference.
    This is what I need it to do. I need it to upload to the that specified range, and then move and size with the cell it was specified to.
    Is this not the right code for that
    Please Login or Register  to view this content.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: VBA Help Object Placement

    The recorded part is correct but I do not see you 'telling' it WHERE to place the object.
    After you load it you move it to the location you want it, give it the top and the loft coordinates to place it.

    For example if its in cell D3 then the top is

    Please Login or Register  to view this content.
    and the left would be something like

    Please Login or Register  to view this content.
    Play around with this

+ 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] End With Placement
    By Teblol in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2018, 03:40 PM
  2. Method 'Range' of object'_ Worksheet' failed Error for a Label Placement
    By mcmahobt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-10-2016, 11:02 AM
  3. Replies: 0
    Last Post: 06-19-2014, 02:09 PM
  4. Decimal placement
    By HappyTina in forum Excel General
    Replies: 3
    Last Post: 08-27-2010, 08:45 PM
  5. Name Placement
    By lsmft in forum Excel General
    Replies: 7
    Last Post: 03-01-2006, 08:20 PM
  6. Tab placement
    By Spiff in forum Excel General
    Replies: 1
    Last Post: 09-15-2005, 10:05 AM
  7. [SOLVED] Cursor placement
    By Randy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-11-2005, 09:05 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