I have a template that has the ability to add/delete files. Works great.
Latest request is to insert another file, however with this file, because of
size I cannot do a section break, only page break as the footer and header
would not allow for enough room. Adding this file(FileA) is fine. When I add
another (FileB)with a section break, the bottom of it gets a 16 pt. font, too
large to remain on 1 page.
The top of file A has 16 pt, bottom of file A has 8pt. File B has 11 pt.
What is the probelm?

2)I have a delete macro which deletes the files, up to 4 currently but, with
this new file it bombs.
I'm assuming because it was not addede with a section. I count how many
files added and then delete that many.
Curernt code to delete:
>Dim rnge As Range
> Set rnge = ActiveDocument.Sections.Last.Range
> rnge.start = rnge.start - 1
> rnge.Delete

How do I delete fileA?

Hopefully this is enough info to give you an idea.

Thanks,
Bryan

RE: problem with inserting/deleting file w/ section break and page bre by JeanGuyMarcil

JeanGuyMarcil
Fri May 16 05:28:00 PDT 2008

"bryan" wrote:

> I have a template that has the ability to add/delete files. Works great.
> Latest request is to insert another file, however with this file, because of
> size I cannot do a section break, only page break as the footer and header
> would not allow for enough room. Adding this file(FileA) is fine. When I add
> another (FileB)with a section break, the bottom of it gets a 16 pt. font, too
> large to remain on 1 page.
> The top of file A has 16 pt, bottom of file A has 8pt. File B has 11 pt.
> What is the probelm?
>
> 2)I have a delete macro which deletes the files, up to 4 currently but, with
> this new file it bombs.
> I'm assuming because it was not addede with a section. I count how many
> files added and then delete that many.
> Curernt code to delete:
> >Dim rnge As Range
> > Set rnge = ActiveDocument.Sections.Last.Range
> > rnge.start = rnge.start - 1
> > rnge.Delete

I have done this type of template before. In one case, users could
add/delete/insert as many files as they wanted, they could even delete
multiple files. Becasue I had no control over the content of the file being
added, I decided to use a Bookmark system. Each file inserted was assigned a
bookmark. I kept track of the bookmarks with document variables.
It was complex becasue users could delete any file, so when they did so, I
had to manage the bookmarks and their corresponding document variables, I had
to check for unique names, etc...

In your case, I do not understand why you cannot use a section break to
insert a file, but must use a page break becasue of some size thing...
In fact, page breaks are trickier and occupy more space than section breaks...

If you had a system that worked well and that was based on using section
breaks, do not be surprised to see it go wrong when you start using page
breaks as well...

I would find a way to make it work with a section break and not use the
page break at all (in fact, personally, I guess it is a Pet Peeve, I never
use page breaks... hate them!)


RE: problem with inserting/deleting file w/ section break and page by bryan

bryan
Fri May 16 05:54:02 PDT 2008

Thanks for responding.
I've played around with this enough to give me a headache. Section breaks
work great but, the page break is driving me crazy, with font changes on
insertion and erroring when deleting.

Bryan


"Jean-Guy Marcil" wrote:

> "bryan" wrote:
>
> > I have a template that has the ability to add/delete files. Works great.
> > Latest request is to insert another file, however with this file, because of
> > size I cannot do a section break, only page break as the footer and header
> > would not allow for enough room. Adding this file(FileA) is fine. When I add
> > another (FileB)with a section break, the bottom of it gets a 16 pt. font, too
> > large to remain on 1 page.
> > The top of file A has 16 pt, bottom of file A has 8pt. File B has 11 pt.
> > What is the probelm?
> >
> > 2)I have a delete macro which deletes the files, up to 4 currently but, with
> > this new file it bombs.
> > I'm assuming because it was not addede with a section. I count how many
> > files added and then delete that many.
> > Curernt code to delete:
> > >Dim rnge As Range
> > > Set rnge = ActiveDocument.Sections.Last.Range
> > > rnge.start = rnge.start - 1
> > > rnge.Delete
>
> I have done this type of template before. In one case, users could
> add/delete/insert as many files as they wanted, they could even delete
> multiple files. Becasue I had no control over the content of the file being
> added, I decided to use a Bookmark system. Each file inserted was assigned a
> bookmark. I kept track of the bookmarks with document variables.
> It was complex becasue users could delete any file, so when they did so, I
> had to manage the bookmarks and their corresponding document variables, I had
> to check for unique names, etc...
>
> In your case, I do not understand why you cannot use a section break to
> insert a file, but must use a page break becasue of some size thing...
> In fact, page breaks are trickier and occupy more space than section breaks...
>
> If you had a system that worked well and that was based on using section
> breaks, do not be surprised to see it go wrong when you start using page
> breaks as well...
>
> I would find a way to make it work with a section break and not use the
> page break at all (in fact, personally, I guess it is a Pet Peeve, I never
> use page breaks... hate them!)
>