Thread
:
Is there a VBA PasteSpecial(PasteAllExceptFormats) ?
View Single Post
#
3
Posted to microsoft.public.excel.programming
Nick Hodge
external usenet poster
Posts: 1,173
Is there a VBA PasteSpecial(PasteAllExceptFormats) ?
Richard
Would this work. It just pastes formulas and number formats (Constants will
copy too)
Sub copyAndPasteSpecial()
Dim rng As Range
Set rng = Range("A1:G100")
rng.Copy
Range("H1").PasteSpecial xlPasteFormulasAndNumberFormats
End Sub
--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
www.nickhodge.co.uk
HIS
"Richard Buttrey" wrote in
message ...
I'd like to be able to copy a column which includes formulae, values
and cell background colour formatting, and paste it to another column
which has different colour backgrounds.
I need to keep the formulae from the copied column and the formatting
for the object column.
I realise I can do a PasteAll, and then reset the original colours
with another line or two of code, but a single operation would be
preferable.
Any suggestions please?
Usual TIA
__
Richard Buttrey
Grappenhall, Cheshire, UK
__________________________
Reply With Quote
Nick Hodge
View Public Profile
Find all posts by Nick Hodge