S
sparklynic
I have been saddled with a project in work which I have run into a brick wall
on. I am exporting from one computer program into word a list of fund names.
Each of these fund names requires a comment, which are also saved in word as
separate files each with its own unique filename. I am trying to use the
exported list of filenames to insert the correct corresponding comment using
a Macro. There are anywhere between 125-250 "current" comments at any one
time and these are updated 2-3 times a year. I am expecting anything from 10
up to 50 comments to be exported per client so really would like a macro to
expand all filenames in one go rather than individually with any filenames
that cannot be matched left in the original document with the word error or
something in front of it so that they can be manually inserted after the
macro has run.
My own attempt at a macro tried to block and cut (or copy) each of the
exported filenames in the list into an "insert file" command within a loop
until the last comment had been inserted. Trouble was it didn't like the
block and cut/copy command. It just used the same filename everytime and
didn't block and cut/copy the 2nd one onwards.
If anyone has got any bright ideas or different ways of approaching this
project having seen my thinking above, I would be very grateful.
Sparklynic
on. I am exporting from one computer program into word a list of fund names.
Each of these fund names requires a comment, which are also saved in word as
separate files each with its own unique filename. I am trying to use the
exported list of filenames to insert the correct corresponding comment using
a Macro. There are anywhere between 125-250 "current" comments at any one
time and these are updated 2-3 times a year. I am expecting anything from 10
up to 50 comments to be exported per client so really would like a macro to
expand all filenames in one go rather than individually with any filenames
that cannot be matched left in the original document with the word error or
something in front of it so that they can be manually inserted after the
macro has run.
My own attempt at a macro tried to block and cut (or copy) each of the
exported filenames in the list into an "insert file" command within a loop
until the last comment had been inserted. Trouble was it didn't like the
block and cut/copy command. It just used the same filename everytime and
didn't block and cut/copy the 2nd one onwards.
If anyone has got any bright ideas or different ways of approaching this
project having seen my thinking above, I would be very grateful.
Sparklynic