+ Reply to Thread
Results 1 to 4 of 4

Modify code to replace picture with new size and position.

  1. #1
    Registered User
    Join Date
    12-29-2018
    Location
    Fgura,Malta
    MS-Off Ver
    2010
    Posts
    3

    Modify code to replace picture with new size and position.

    Hi,
    I have this code below where it removes "Picture 1" and instead it inserts another picture. My problem is that I tried to modify this code so that the new picture will have a new position and size but no success.
    I want the new picture with this position and size:
    Maintain AspectRatio
    .Height = 60
    .Top = Rows(1).Top
    .Left = Columns(1).Left
    This is the code:
    Please Login or Register  to view this content.
    Thanks in advance
    Last edited by noelmus; 09-16-2020 at 12:48 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Modify code to replace picture with new size and position.

    Replace this...
    Please Login or Register  to view this content.

    With this...
    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    12-29-2018
    Location
    Fgura,Malta
    MS-Off Ver
    2010
    Posts
    3

    Re: Modify code to replace picture with new size and position.

    Thanks a lot and appreciate AlphaFrog, it worked perfect.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Modify code to replace picture with new size and position.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] Modify VBA code and Delete code
    By GOrtega in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-18-2020, 12:44 PM
  2. Code to modify
    By krishnakuma6 in forum Excel General
    Replies: 0
    Last Post: 03-31-2020, 12:04 AM
  3. [SOLVED] assistance to modify vba code existing code sheets name to sheet tab names in filtering
    By JEAN1972 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2018, 03:58 AM
  4. [SOLVED] Need to Modify a Code
    By Kuro Kuma22 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-28-2017, 12:17 AM
  5. how to modify a code
    By chriswrcg in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-17-2017, 09:04 AM
  6. Can someone modify code for me.
    By JayeshG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-31-2015, 03:57 PM
  7. [SOLVED] Array Formula vs vBa code - How To Modify My Messy Code To One Of Those
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-20-2012, 12:04 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