The document is protected for the formfields.
The table, unfortunately, is not consistent. It has some embedded merged
cells and some split cells. I was wondering about handling these as separate
sections, then I could at least have a few different macros based on
format/section range. If this makes sense.
Okay, I was concerned about those items. We have three issues here. The
fact that the doc is protected means you will need to unprotect it in order
to add the new information to the end and then reprotect it. Definitely you
would be better off creating an unprotected section in which to copy the data.
Second, if the table columns/rows are inconsistent, it is more difficult to
step through the table and determine and copy the correct cell's data.
Third, I think you stated that some of the data to be copied is from
straight text and some of it resides in a form field. Again, that means
unprotecting the doc and reprotecting it in order to copy straight text from
a cell. If they are all formfields, then no unprotecting is necessary.
If there wasn't any straight text, naming the formfields would be the way to
go. But, it appears you don't have that option here.
I need to think about this over the weekend when I have more time. In the
meantime, I suggest you repost this in the VBA General Question community, as
this question is much more complex than the beginning VBA community can
handle. For the subject line, title it something like Stepping through
protected table cells.
> The document is protected for the formfields.
>
[quoted text clipped - 45 lines]
> > > > > cells 2. 4 and 5 to a new table at the end of the document or into a new
> > > > > table in a new separate document.
VBA Neophyte - 30 Jul 2007 13:32 GMT
Will do, thanks very much. This is a great resource.
> Okay, I was concerned about those items. We have three issues here. The
> fact that the doc is protected means you will need to unprotect it in order
[quoted text clipped - 67 lines]
> > > > > > cells 2. 4 and 5 to a new table at the end of the document or into a new
> > > > > > table in a new separate document.