Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-16-2015, 08:54 AM
kwstewart kwstewart is offline INCLUDETEXT dynamic file name? Mac OS X INCLUDETEXT dynamic file name? Office for Mac 2011
Novice
INCLUDETEXT dynamic file name?
 
Join Date: Aug 2015
Posts: 2
kwstewart is on a distinguished road
Default INCLUDETEXT dynamic file name?

Is it possible to have the file name for the INCLUDETEXT dynamically set using one of the merge fields?



Something like:
INCLUDETEXT MERGEFIELD filename

rather than

INCLUDETEXT test.doc

Here is a sample of the code we currently have and we'd like to pass in the file name using the merge data rather than hard coding all of this.

{ IF { MERGEFIELD Lettertype \* FirstCap \* CHARFORMAT} = "Autumn Crisp" { INCLUDETEXT c:\\ECMarketing\\doc\\Autumn-fact.doc \* MERGEFORMAT } }
{ IF { MERGEFIELD Lettertype \* FirstCap \* CHARFORMAT} = "CandyCrisp" { INCLUDETEXT c:\\ECMarketing\\doc\\Candycrisp-fact.doc \* MERGEFORMAT } }
{ IF { MERGEFIELD Lettertype \* FirstCap \* CHARFORMAT} = "Cortland" { INCLUDETEXT c:\\ECMarketing\\doc\\Cortland-fact.doc \* MERGEFORMAT } }
{ IF { MERGEFIELD Lettertype \* FirstCap \* CHARFORMAT} = "Empire" { INCLUDETEXT c:\\ECMarketing\\doc\\Empire-fact.doc \* MERGEFORMAT } }
{ IF { MERGEFIELD Lettertype \* FirstCap \* CHARFORMAT} = "Fortune" { INCLUDETEXT c:\\ECMarketing\\doc\\Fortune-fact.doc \* MERGEFORMAT } }
{ IF { MERGEFIELD Lettertype \* FirstCap \* CHARFORMAT} = "Fuji" { INCLUDETEXT c:\\ECMarketing\\doc\\Fuji-fact.doc \* MERGEFORMAT } }

I've been researching this and can't find any examples using a merge field for the file name.

Thank you!!
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional INCLUDETEXT based on data merge Kavo Mail Merge 6 05-08-2015 07:44 AM
INCLUDETEXT dynamic file name? problem with includetext bosskardo Mail Merge 1 11-21-2014 12:27 AM
ERROR with INCLUDETEXT jjian Mail Merge 5 10-21-2014 01:34 PM
INCLUDETEXT dynamic file name? Word 2010 Includetext not automatically updating nataliec Word 4 12-13-2012 02:37 PM
IncludeText kenglade Word 6 12-05-2011 02:47 PM

Other Forums: Access Forums

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