Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Tom..
I suggest reversing the pasting sequence has a few advantages and may give fewer problems with text/dates and merged cells. rng1.PasteSpecial xlFormats rng1.PasteSpecial xlValues keepITcool < email : keepitcool chello nl (with @ and .) < homepage: http://members.chello.nl/keepitcool "Tom Ogilvy" wrote : Sub CopyClosingData() Dim i As Long, rng As Range, sh As Worksheet Dim rng1 as Range Worksheets.Add(After:=Worksheets( _ Worksheets.Count)).Name = "ClosingData" Set sh = Worksheets("Closings") i = 12 Do While Not IsEmpty(sh.Cells(i, 1)) Set rng = Union(sh.Cells(i, 1), _ sh.Cells(i + 1, 1).Resize(2, 1)) rng.EntireRow.Copy set rng1 = Worksheets("ClosingData") _ .Cells(Rows.Count, 1).End(xlUp)(2) rng1.PasteSpecial xlValues rng1.PasteSpecial xlFormats i = i + 12 Loop End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Keyboard Shortcuts for Paste Special Values and Formats | Excel Discussion (Misc queries) | |||
copy & paste values+formats from excel to word | Excel Discussion (Misc queries) | |||
Paste Values and Formats Only???? | Excel Discussion (Misc queries) | |||
Conditional formats- paste special formats? | Excel Discussion (Misc queries) | |||
paste conditional formats as formats | Excel Discussion (Misc queries) |