Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-21-2020, 02:19 PM
Steve2081 Steve2081 is offline dropdown box import images Windows 7 64bit dropdown box import images Office 2016
Advanced Beginner
dropdown box import images
 
Join Date: Apr 2020
Posts: 44
Steve2081 is on a distinguished road
Default dropdown box import images


Is there a code that can be used, so when a user selects an item from the dropdown list it then imports an image of that item. e.g dropbox is called exercises, the lists are squats,lunges, press up. when squats are selected it imports a jpeg from a stored location of the squat.
Reply With Quote
  #2  
Old 05-21-2020, 03:06 PM
gmaxey gmaxey is offline dropdown box import images Windows 10 dropdown box import images Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

To get yourself started, see:
Link "Conditional Content" to a List Selection
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 05-21-2020, 11:59 PM
Steve2081 Steve2081 is offline dropdown box import images Windows 7 64bit dropdown box import images Office 2016
Advanced Beginner
dropdown box import images
 
Join Date: Apr 2020
Posts: 44
Steve2081 is on a distinguished road
Default

Thanks I'll look into this
Reply With Quote
  #4  
Old 05-22-2020, 11:58 AM
Steve2081 Steve2081 is offline dropdown box import images Windows 7 64bit dropdown box import images Office 2016
Advanced Beginner
dropdown box import images
 
Join Date: Apr 2020
Posts: 44
Steve2081 is on a distinguished road
Default

Hi Greg
Thanks for the website. Looking at your demonstration kit the cc dropdown list Method G seems like it could work. Regarding the code, could you point in the direct as to which code is required. Thanks
Reply With Quote
  #5  
Old 05-22-2020, 12:36 PM
gmaxey gmaxey is offline dropdown box import images Windows 10 dropdown box import images Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Steve,

All of the code is in the demonstration package that you can download with the link at the end of the tips page.


For that example, you basically need to create an map five CCs. One DDL and four Picture CC. One of the picture CCs is the conditional picture CC and left blank. The other three have the Alpha, Bravo and Charlie signal flag graphics. Once mapped you can delete those three from the document.
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #6  
Old 05-23-2020, 12:25 PM
Steve2081 Steve2081 is offline dropdown box import images Windows 7 64bit dropdown box import images Office 2016
Advanced Beginner
dropdown box import images
 
Join Date: Apr 2020
Posts: 44
Steve2081 is on a distinguished road
Default

please could explain how to map. on my developer tab I've got the XML mapping pane which when selected opens the custom XML part. I'm not sure what to do from here and how to make a content Control conditional.
Reply With Quote
  #7  
Old 05-23-2020, 01:15 PM
gmaxey gmaxey is offline dropdown box import images Windows 10 dropdown box import images Office 2016
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,421
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

See attached
Attached Files
File Type: docm Simple Linked Conditional Graphics.docm (54.3 KB, 7 views)
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Selection of a dropdown creates another dropdown wih the list krishnamurthy.ka2810 Word VBA 1 04-26-2018 11:44 PM
dropdown box import images Import images, resize them, and fit them to specific locations on the page hysterical.useless Drawing and Graphics 8 01-30-2018 04:27 PM
Dropdown list for Images? JakeLRL Word VBA 3 04-07-2016 02:57 AM
Import Images so Properties show next to image Drydama Word VBA 3 10-27-2015 02:01 AM
dropdown box import images Mail Mege Images - Path Correct but Images Repeated Sonia Sosa Mail Merge 8 04-22-2011 03:05 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:57 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