Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm copying data to a spreadsheet every day with a macro. When the data is
copied to the new WB, it carries over the font formattng and sheet formating of the original WB. Is there code I can use format a column and font from row 19458 and forward. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If you want to preserve the formats already present in the new WB you can use
Selection.PasteSpecial Paste:=xlPasteValues -- Best wishes, Jim "JOUIOUI" wrote: I'm copying data to a spreadsheet every day with a macro. When the data is copied to the new WB, it carries over the font formattng and sheet formating of the original WB. Is there code I can use format a column and font from row 19458 and forward. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yikes, this is not working, what am I doing wrong? I treid it with Selection
and now with rng1 and both times it failed. Thanks rng1.Copy rng3.Offset(0, 0) rng1.PasteSpecial Paste:=xlPasteValues "Jim Jackson" wrote: If you want to preserve the formats already present in the new WB you can use Selection.PasteSpecial Paste:=xlPasteValues -- Best wishes, Jim "JOUIOUI" wrote: I'm copying data to a spreadsheet every day with a macro. When the data is copied to the new WB, it carries over the font formattng and sheet formating of the original WB. Is there code I can use format a column and font from row 19458 and forward. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Instead of...
ActiveSheet.Paste try Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, _ SkipBlanks:=False, Transpose:=False That will stop the formatting from being copied over. -- HTH, Gary Brown If this post was helpful to you, please select ''YES'' at the bottom of the post. "JOUIOUI" wrote: I'm copying data to a spreadsheet every day with a macro. When the data is copied to the new WB, it carries over the font formattng and sheet formating of the original WB. Is there code I can use format a column and font from row 19458 and forward. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formatting question | Excel Discussion (Misc queries) | |||
Formatting Question | Excel Discussion (Misc queries) | |||
Formatting Question | Excel Worksheet Functions | |||
formatting question | Excel Programming | |||
formatting question | Excel Programming |