Automatically match destination formatting?

G

Guest

I have a spreadsheet where I would like everything I paste into to it to
match the formattting of the cells around it--not retain the formatting it
had in its original location. I don't want to have to select "match
destination formatting" every time--I want it to default to that. Any ideas?
Thanks.
 
J

Jim Rech

I cannot find a way to make Excel paste automatically using destination
formatting. A workaround is to use a macro to do the paste:

Sub PasteWithDestinationFormatting()
ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
False, NoHTMLFormatting:=True
End Sub

You could assign this to a shortcut key (Ctrl-Shift-v in this example) by
running this macro:

Sub SetPasteShortcut()
Application.OnKey "^V", "PasteWithDestinationFormatting"
End Sub


--
Jim
|I have a spreadsheet where I would like everything I paste into to it to
| match the formattting of the cells around it--not retain the formatting it
| had in its original location. I don't want to have to select "match
| destination formatting" every time--I want it to default to that. Any
ideas?
| Thanks.
 
R

ritzput

I'm using Excel 2007 and wondering same thing? Can this be done in 2007 and
if so, can you explain below further cuz i don't understand your explanation.
thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top