Hi,

I'm quite ignorant in VBA... and I've got a problem...

I've got this Word file, which I use to generate about 80 (different
but alike) HTML-files by merging it with an Excel-file...

The result: one big Wordfile. This should be cut into pieces, each page
in a different file, saved as a .txt-file.

In each page of the 'mainfile' I've made myself a remark: save this
file as 'whatever.txt'.

I've made a macro already that cuts the content of one 'subfile' and
pastes it into a new file which I then have to save by hand. I'm sure
it should be possible to let a macro determine (from the text) what the
filename should be, and save the file with the right filename... but
how...

Anyone?

TIA,
Joost


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

Re: Save as... something in my document... by Perry

Perry
Sat Jan 03 04:43:25 CST 2004

How can an automation process determine which part of
your text should be considered as 'would-be' filename?

Is this the text of the first paragraph?
Is this the text of the last paragraph?
Is the text prefixed?
Is the text suffixed?

Kindly elaborate.

Krgrds,
Perry

"Yoast1970" <Yoast1970.zfz2e@nospam.WordForums.com> wrote in message
news:Yoast1970.zfz2e@nospam.WordForums.com...
>
> Hi,
>
> I'm quite ignorant in VBA... and I've got a problem...
>
> I've got this Word file, which I use to generate about 80 (different
> but alike) HTML-files by merging it with an Excel-file...
>
> The result: one big Wordfile. This should be cut into pieces, each page
> in a different file, saved as a .txt-file.
>
> In each page of the 'mainfile' I've made myself a remark: save this
> file as 'whatever.txt'.
>
> I've made a macro already that cuts the content of one 'subfile' and
> pastes it into a new file which I then have to save by hand. I'm sure
> it should be possible to let a macro determine (from the text) what the
> filename should be, and save the file with the right filename... but
> how...
>
> Anyone?
>
> TIA,
> Joost
>
>
> ------------------------------------------------
> ~~ Message posted from http://www.ExcelTip.com/
> ~~View and post usenet messages directly from http://www.ExcelForum.com/
>