Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-09-2019, 04:57 AM
thoerzer thoerzer is offline Get image path from content control field - NO VBA possible Windows 10 Get image path from content control field - NO VBA possible Office 2019
Novice
Get image path from content control field - NO VBA possible
 
Join Date: Oct 2019
Posts: 4
thoerzer is on a distinguished road
Smile Get image path from content control field - NO VBA possible

Hello all!

My goal is to get the source path for an image from an content control field without using VBA, in this respect it is not possible for me to use VBA, because the file would be a *.docm

To explain it better...

1) in the content control field I get for instance the image link
(https\\sharepoint.com\image.jpg)
2) this link should become the source path of an image that is already in the word file
3) without using VBA

I don't know if that's possible without VBA (in which it would be very simple). I searched already for one hour and found no solution on the internet that would be somehow feasible for me...
I played around if "IncludeImage" however, I couldn't manage it to solve my problem with that

Thanks a lot helping a Word-brother out

Cheers


Thomas

PS.: See attached jpg for better understanding
Attached Images
File Type: jpg image.jpg (21.5 KB, 12 views)
Reply With Quote
  #2  
Old 10-09-2019, 02:15 PM
macropod's Avatar
macropod macropod is offline Get image path from content control field - NO VBA possible Windows 7 64bit Get image path from content control field - NO VBA possible Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by thoerzer View Post
it is not possible for me to use VBA, because the file would be a *.docm
You can use VBA with docx files, too, by putting the code in the document's template...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 10-09-2019, 11:41 PM
thoerzer thoerzer is offline Get image path from content control field - NO VBA possible Windows 10 Get image path from content control field - NO VBA possible Office 2019
Novice
Get image path from content control field - NO VBA possible
 
Join Date: Oct 2019
Posts: 4
thoerzer is on a distinguished road
Default

Hello Paul

Thank you so much for replying me, however I've no idea how to do it apparently. When I save the code in the *.dotx the code is not there anymore in the *.docx.

Can you explain further, if you are so kind?

Kind regards

Thomas
Reply With Quote
  #4  
Old 10-10-2019, 12:07 AM
macropod's Avatar
macropod macropod is offline Get image path from content control field - NO VBA possible Windows 7 64bit Get image path from content control field - NO VBA possible Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You would need to save the template in the .dotm (macro-enabled) format - then re-attach any existing documents you want to use the macro with to that template. Any new documents created from the dotm template will still default to the docx format, but they'll have full access to any macros in the dotm template..
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 10-10-2019, 12:08 AM
thoerzer thoerzer is offline Get image path from content control field - NO VBA possible Windows 10 Get image path from content control field - NO VBA possible Office 2019
Novice
Get image path from content control field - NO VBA possible
 
Join Date: Oct 2019
Posts: 4
thoerzer is on a distinguished road
Default

Well, thanks Paul I figured it out by myself - amazing

thanks for your help
Reply With Quote
  #6  
Old 10-10-2019, 12:10 AM
thoerzer thoerzer is offline Get image path from content control field - NO VBA possible Windows 10 Get image path from content control field - NO VBA possible Office 2019
Novice
Get image path from content control field - NO VBA possible
 
Join Date: Oct 2019
Posts: 4
thoerzer is on a distinguished road
Default

ohhh I just saw now your explanation as well...

THANKS A LOT

Thomas
Reply With Quote
Reply

Tags
content control, image link, no vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display Image when Base64 code is inserted in content control vas Drawing and Graphics 0 12-12-2018 08:53 AM
Get image path from content control field - NO VBA possible Check if named Content Control field exists and add missing sylvio Word VBA 2 08-29-2017 04:08 AM
Get image path from content control field - NO VBA possible Show field shading in Content Control ajanson Word 3 08-15-2016 04:49 PM
Have Text Entered in Content Control / PreDefined Field Populate Field in Footer bzowk Word 1 04-14-2016 11:50 AM
Get image path from content control field - NO VBA possible Adding auto text to end of content control field ksigcajun Word VBA 4 10-13-2014 05:37 AM

Other Forums: Access Forums

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