Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-14-2013, 12:08 AM
anandyrh anandyrh is offline Insert image based on document custom property Windows 7 32bit Insert image based on document custom property Office 2010 32bit
Novice
Insert image based on document custom property
 
Join Date: Aug 2013
Posts: 2
anandyrh is on a distinguished road
Default

I wrote this code to insert a image based on value of Category document property.


Quote:
Category = ActiveDocument.BuiltInDocumentProperties("Category ")

With ActiveDocument

If Category = "IT" Then
Selection.InlineShapes.AddPicture FileName:= _
"C:\Users\user\Documents\testing.jpg", LinkToFile:= _
False, SaveWithDocument:=True
End If
End With

Regards,
Anand
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert image based on document custom property Default Custom Dictionary Based on Document PatrickYork Word 3 04-03-2015 11:19 PM
Insert image based on document custom property automatically insert an image into a document hanrattyc Word 1 05-13-2013 04:27 PM
Custom Document Property Lost From Template bhaughey Word 8 03-05-2013 02:11 PM
Link Watermark to custom property kerend Word 0 04-08-2012 05:03 AM
Insert image based on document custom property QuickParts - custom document property untttt Word 2 06-09-2011 05:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:44 AM.


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