Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-24-2020, 07:50 AM
Pestomania Pestomania is offline Select Image and Move to Front Windows 10 Select Image and Move to Front Office 2010
Novice
Select Image and Move to Front
 
Join Date: Dec 2020
Posts: 5
Pestomania is on a distinguished road
Default Select Image and Move to Front

Hello,



I have two images "Logo_1.jpg" and "Logo_2.jpg".

When I select "Company_1" from a dropdown, I need the vba to select "Logo_1" and move to front and same when I select Company_2.

How can I do this?
Reply With Quote
  #2  
Old 12-24-2020, 09:07 AM
eduzs eduzs is offline Select Image and Move to Front Windows 10 Select Image and Move to Front Office 2019
Expert
 
Join Date: May 2017
Posts: 262
eduzs is on a distinguished road
Default

You need to know the shape's name or index number (even if its a shape or a inlineshape), in this example it is a shape named "Logo_1":
What kind of control are you using?
Quote:
With ActiveDocument.Shapes("Logo_1")
.Select
.ZOrder msoBringToFront
End With
__________________
Backup your original file before doing any modification.

Last edited by eduzs; 12-24-2020 at 12:16 PM.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Move select data from one sheet to another bksmith Excel 1 12-12-2017 09:28 AM
extract time from a cell and move it to front of cell before text ewso Excel 20 03-19-2017 11:34 AM
ComboBox : select image to insert in Sheet1 smallxyz Excel Programming 0 02-07-2016 05:41 PM
Template Document Front Page with Select Options RichTea88 Word 2 01-28-2014 03:40 PM
Select Image and Move to Front Keep box drawn in front of Video in FRONT position a_gunslinger PowerPoint 1 04-18-2013 07:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft