+ Reply to Thread
Results 1 to 5 of 5

Selection problem to resize picture

  1. #1
    Registered User
    Join Date
    09-11-2009
    Location
    ludvika
    MS-Off Ver
    Excel 2003
    Posts
    28

    Selection problem to resize picture

    Hello, i'm new to Excel programming and need some help.

    I'm trying to copy a picture from one Worksheet to another and then resize it, when i select the picture after pasting it into the other worksheet i use the code ActiveSheet.Shapes("Picture 6").Select, the problem here is that i don't know the name of the picture because i use a loop that copys alot of pictures.
    How can i solve this ?
    Last edited by vismbr; 09-14-2009 at 05:16 AM.

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

    Re: Selection problem to resize picture

    Rather than using a name, that will likely change, use the counter.

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    09-11-2009
    Location
    ludvika
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Selection problem to resize picture

    Thanks, worked perfectly!

    I have another prolem that i just ran into, might aswell ask it now. How do i copy the source of a hyperlink ? I tried to record some macros but i dont get any code for going into the hyperlink options and copying the url.

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

    Re: Selection problem to resize picture

    Start a new thread for your next question.

  5. #5
    Registered User
    Join Date
    03-03-2013
    Location
    mumbai
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Selection problem to resize picture

    Hi Vismbr,

    will you please provide the full VB code for me? my email [email protected].
    i was eagerly waiting for this kind of code since i am very poor at coding

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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