View Single Post
  #3   Report Post  
Posted to microsoft.public.word.formatting.longdocs
[email protected] steve.breslin@gmail.com is offline
external usenet poster
 
Posts: 7
Default inserting filenames in concatenate-files macro

On Mar 3, 4:36 am, "Doug Robbins - Word MVP"
wrote:
I assume that you are doing this manually rather than through code (because
if the code was not problem for you, the filename should not be either)


Clumsily asked question, sorry. -- I do need to do this in the code.
(I found code to combine the material on the web, and there's a recent
discussion of this topic on this newsgroup as well. I tried to figure
out how to modify it to insert filenames, but I didn't get very far.)

I figured such an algorithm would work something like this:

open dialogue to select files to insert.
iterate over the files to insert {
1. insert filename
2. insert file
}