It's difficult to decipher your code and imagine what you might have in
cells, seems some are merged which complicates things.. Normally
Paste:=xlPasteAll should paste all formats including borders. Suggest
recreate you code in VBA, perhaps start with a recorded macro, manually
copy/paste cells in exactly the same order as the logic of your .Net code.
Regards,
Peter T
"Eric Weller" <(E-Mail Removed)> wrote in message
news:12966B4A-A51F-4D02-A7A0-(E-Mail Removed)...
> That is not the case. I even put borders on all 4 sides of the cell and
it
> still did not copy them.
>
> "Peter T" wrote:
>
> > Maybe there are no borders in cell $K$13, but borders in neighbouring
cells.
> >
> > Regards,
> > Peter T
> >
> > "Eric Weller" <(E-Mail Removed)> wrote in message
> > news
C5F5F43-B812-4962-9B95-(E-Mail Removed)...
> > > All,
> > > I am moving the formatting (border, font, cell size, etc) from a cell
on
> > one
> > > sheet to a cell on another sheet by using copy and PasteSpecial. It
works
> > > fine except there are is a cell that does not get the borders copied.
It
> > > consistantly does not copy the borders from cell $K$13.
> > > The code searches the worksheet looking for cells that contain the "<"
> > > character. If it finds one, it copies the formatting to Sheet 1 to
Sheet
> > 2.
> > > Here is the code I am using:
> > <snip>
> >
> >
> >