Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
LT LT is offline
external usenet poster
 
Posts: 25
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing cell borders when I copy and paste Davo New Users to Excel 2 April 21st 08 12:20 AM
can you change the default paste method? (paste values) David A Brown Excel Discussion (Misc queries) 3 December 18th 07 09:59 AM
Copy&paste cells w/o affecting borders Conker10382 Excel Discussion (Misc queries) 2 December 18th 06 12:11 AM
Preserve borders during copy and paste? aarotu Excel Discussion (Misc queries) 1 July 11th 06 04:08 PM
Paste without including cell borders Heath Excel Worksheet Functions 1 December 29th 04 04:23 PM


All times are GMT +1. The time now is 02:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"