+ Reply to Thread
Results 1 to 6 of 6

problem with Shapes.AddPictue

  1. #1
    Registered User
    Join Date
    12-16-2019
    Location
    Kraków
    MS-Off Ver
    2013
    Posts
    2

    problem with Shapes.AddPictue

    hi,
    i have macros which uses excel template with predefined shapes location
    and into these shapes images are inserted. Problem is after image is added using Shapes.AddPicture
    the image is not moved along with shape when columns are added so all can expand accordingly.
    No such problem with Picture.Insert but I need image to be embedded into document hence Shapes.AddPicture.
    Any ideas how to fix it?

    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 12-16-2019 at 09:25 AM.

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,907

    Re: problem with Shapes.AddPictue

    Try adding:

    Please Login or Register  to view this content.
    you can use xlmoveandsize instead if you want the picture to resize with the cells too.
    Rory

  3. #3
    Registered User
    Join Date
    12-16-2019
    Location
    Kraków
    MS-Off Ver
    2013
    Posts
    2

    Re: problem with Shapes.AddPictue

    Quote Originally Posted by rorya View Post
    Try adding:

    Please Login or Register  to view this content.
    you can use xlmoveandsize instead if you want the picture to resize with the cells too.
    you mean like this? after AddPicture? because nothing changed with this

    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 12-16-2019 at 09:25 AM.

  4. #4
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,907

    Re: problem with Shapes.AddPictue

    I guess I misunderstood what you want then. It turns out that the default is to move with cells anyway, so I'm not sure what it is you want?

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: problem with Shapes.AddPictue

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: problem with Shapes.AddPictue

    Administrative Note:

    Please don't quote entire posts unnecessarily. They clutter threads and make them hard to read.
    Use the "Quick reply" instead
    Thanks

+ 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] strange problem with shapes
    By colddeck84 in forum Excel Programming / VBA / Macros
    Replies: 31
    Last Post: 09-13-2017, 11:19 AM
  2. Problem with connecting Freeform shapes
    By ultraserenejoe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2016, 01:47 AM
  3. Problem with shapes in Print Preview Full Screen
    By MacPadana in forum Excel General
    Replies: 2
    Last Post: 12-31-2015, 12:18 AM
  4. Problem regarding changing the size of inserted shapes
    By aks7887 in forum Excel General
    Replies: 2
    Last Post: 05-07-2015, 04:19 AM
  5. [SOLVED] Problem with aligning shapes. Specific value out of range error
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2013, 04:36 PM
  6. How To Move Shapes From Another Shapes? (floating shapes)
    By MarcLev in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 10-04-2009, 04:04 PM
  7. Shapes problem
    By smarta in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2007, 10:47 PM

Tags for this Thread

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