View Single Post
  #15   Report Post  
Posted to microsoft.public.excel.programming
DavidH56 DavidH56 is offline
external usenet poster
 
Posts: 82
Default Simplify Code help

On both sheets columns a through f have widths of 9.57, 80.71, 5.86, 5.43,
11.71 and 8.43 respectively. Both sheets also have size 8 tahoma fonts. Row
a is the header row. Sometimes I get bold fonts on update sheets. Both
sheets initially have as headers ID, Title, Stat, Code, ICN and ICN Chg Cd. I
just ran your code again and what actually happened was on the master sheet
the IDs (data) where removed and Title data shifted to column a instead of
column b. The others shifted to the left as well and ICN Chg cd data were in
both columns e and f. The column widths were resized as well.

Thanks again for your response.


Thanks again for your response
--
By persisting in your path, though you forfeit the little, you gain the
great.



"Rick Rothstein" wrote:

When you say "I lost column and row formatting on the master sheet", I
presume you mean in the cells on the master sheet that were copied to... not
the entire column of formatted cells. Yes, the Copy method changes the
cell(s) it copies to's formatting to that of the cell(s) it copied from.
What surprises me about your statement is that you have the cells on one
sheet formatted differently than the cells on the other sheet **for the
exact same data**. Have I interpreted your comment correctly? Out of
curiosity, what is the formatting on each sheet that you are actually using?

--
Rick (MVP - Excel)


"DavidH56" wrote in message
...
Rick, I just tried you code. Font formatting was maintained bur I lost
column
and row formatting on the master sheet.

Thanks.
--
By persisting in your path, though you forfeit the little, you gain the
great.



"Rick Rothstein" wrote:

Thanks for your quick response Jim. Thanks Rick and Mike and JP for
your
input.
This works perfectly and so fast. I'm always amazed at the vast
knowledge
that I glean from you experts. This is exactly what I was looking for.
One
last question. How would I copy over formats as well? (ie bold font..)

I guess you didn't actually try my code out then, did you?<g

The code I posted preserve the formatting of the cell.

--
Rick (MVP - Excel)