+ Reply to Thread
Results 1 to 4 of 4

Trying to play with Pictures/Images...

  1. #1
    Registered User
    Join Date
    11-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Question Trying to play with Pictures/Images...

    Is there a way to make it so an Image or Picture can be dragged to only certain spots on an Excel Sheet? I'd like it to go back to it's default location if the user missed the area to where it SHOULD/COULD be put. Let's say the Picture is currently "Snapped" into Cell G1. I want it to be "Snapped" into any Cell in Column C otherwise it goes back to G1.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Trying to play with Pictures/Images...

    Not diectly; there's no event generated when a picture/shape is moved, so you'd need to test the location in the selection change event or calculate event, and then move it -- that wouldn't be real intuitive to the user.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-02-2012
    Location
    United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Trying to play with Pictures/Images...

    Quote Originally Posted by shg View Post
    Not diectly; there's no event generated when a picture/shape is moved, so you'd need to test the location in the selection change event or calculate event, and then move it -- that wouldn't be real intuitive to the user.
    Yea I figured as much I used some VBA to move the image(s). I decided to go with a Picture_Click Procedure instead of trying to figure out Drag and Drop stuff. I will end up just coding some constants in the background to mimic the "idea" but thanks for your time!

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Trying to play with Pictures/Images...

    You're welcome.

+ 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. IF Statement to place images/pictures
    By BugmanGB in forum Excel General
    Replies: 2
    Last Post: 05-16-2014, 10:57 AM
  2. Replies: 0
    Last Post: 01-01-2014, 04:36 PM
  3. Insert Images/Pictures for an IF Function
    By kibbles in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-26-2013, 11:45 PM
  4. Trying to embed & play an mp3 file with buttons for play/pause stop & mute
    By jagerman18 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2012, 02:50 AM
  5. Pictures/Images move and distort
    By mmetzler in forum Excel General
    Replies: 0
    Last Post: 06-28-2007, 10:52 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