Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I must be missing something obvious here... I am trying to use a rang copy to copy values and formats from a series of worksheets. Th values come over fine, but the number formats do not. What is the trick to copy number formats? The vba is: With sh.Range(sh.Cells(FirstRow, FirstCol) sh.Cells(shLast, LastCol)) DestSh.Cells(Last + 1, 1).Resize(.Rows.Count, _ .Columns.Count).Value = .Value DestSh.Cells(Last + 1, 1).Resize(.Rows.Count, _ .Columns.Count).NumberFormat = .NumberFormat End With Thanks, Stev -- Steve ----------------------------------------------------------------------- SteveS's Profile: http://www.excelforum.com/member.php...fo&userid=1011 View this thread: http://www.excelforum.com/showthread.php?threadid=26838 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy all formats and objects | Excel Discussion (Misc queries) | |||
Copy column, paste special formulas & number formats doesn't work | Excel Discussion (Misc queries) | |||
Copy worksheets and formats | Excel Discussion (Misc queries) | |||
Copy Conditional Formats | Excel Programming | |||
using array to copy formats as well... | Excel Programming |