ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Paste no borders and values (https://www.excelbanter.com/excel-programming/388785-paste-no-borders-values.html)

brownti via OfficeKB.com

Paste no borders and values
 
I have a piece of code that runs the following:
Selection.PasteSpecial Paste:=xlPasteAllExceptBorders, Operation:=xlNone,
SkipBlanks:=False, Transpose:=False

I would also like it to paste values and not links. How can both of these be
accomplished?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200705/1


LT

Paste no borders and values
 
On May 4, 3:38 pm, "brownti via OfficeKB.com" <u31540@uwe wrote:
I have a piece of code that runs the following:
Selection.PasteSpecial Paste:=xlPasteAllExceptBorders, Operation:=xlNone,
SkipBlanks:=False, Transpose:=False

I would also like it to paste values and not links. How can both of these be
accomplished?

--
Message posted via OfficeKB.comhttp://www.officekb.com/Uwe/Forums.aspx/excel-programming/200705/1


Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
SkipBlanks:= False, Transpose:=False

Try that!

Hope that helps!

-LT


Tom Ogilvy

Paste no borders and values
 
Execute two lines of code:

Selection.PasteSpecial Paste:=xlPasteAllExceptBorders, _
Operation:=xlNone, _
SkipBlanks:=False, _
Transpose:=False
Selection.PasteSpecial Paste:=xlValues

--
Regards,
Tom Ogilvy


"brownti via OfficeKB.com" wrote:

I have a piece of code that runs the following:
Selection.PasteSpecial Paste:=xlPasteAllExceptBorders, Operation:=xlNone,
SkipBlanks:=False, Transpose:=False

I would also like it to paste values and not links. How can both of these be
accomplished?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200705/1




All times are GMT +1. The time now is 10:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com