Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 74
Default Paste special function

I have 2 worksheets: one large one with data for several employees, and a
smaller one that will be sent to individual employees. I have the smaller
worksheet formatted in an easy to read format, and will be copying data from
the larger worksheet to the smaller one.

When copying the data to the smaller worksheet, the formatting I customized
gets written over by the formatting from the larger worksheet. I know I can
use "paste special" to only copy the values and not the format. However, is
there a way to make this the "default" option for pasting so that I can use
"alt-V" instead of right clicking?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 533
Default Paste special function

You should create a paste special values macro like this and assign a
keystroke to it (via Tools, Macro, Macros, pick macro, Properties).

Sub DoPasteValues()
ActiveCell.PasteSpecial xlValues
Application.CutCopyMode = False
End Sub


--
Jim
"richzip" wrote in message
...
|I have 2 worksheets: one large one with data for several employees, and a
| smaller one that will be sent to individual employees. I have the smaller
| worksheet formatted in an easy to read format, and will be copying data
from
| the larger worksheet to the smaller one.
|
| When copying the data to the smaller worksheet, the formatting I
customized
| gets written over by the formatting from the larger worksheet. I know I
can
| use "paste special" to only copy the values and not the format. However,
is
| there a way to make this the "default" option for pasting so that I can
use
| "alt-V" instead of right clicking?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Paste special function

As an alternative to Jim's suggestion you could place event code in the target
worksheet that preserves the formatting when anything is copied into it.

Private Sub Worksheet_Change(ByVal Target As Range)
'retain formatting when a cell is copied over
Dim myValue
With Application
.EnableEvents = False
myValue = Target.Value
.Undo
Target = myValue
.EnableEvents = True
End With
End Sub

This is sheet event code. Right-click on the target sheet tab and "View Code".

Copy/paste into that sheet module. Alt + q to return to the Excel sheet window.

You can now copy from source sheet and paste to target sheet with no disruption
of target sheet formatting.


Gord Dibben MS Excel MVP


"richzip" wrote in message
...
|I have 2 worksheets: one large one with data for several employees, and a
| smaller one that will be sent to individual employees. I have the smaller
| worksheet formatted in an easy to read format, and will be copying data
from
| the larger worksheet to the smaller one.
|
| When copying the data to the smaller worksheet, the formatting I
customized
| gets written over by the formatting from the larger worksheet. I know I
can
| use "paste special" to only copy the values and not the format. However,
is
| there a way to make this the "default" option for pasting so that I can
use
| "alt-V" instead of right clicking?


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
Can't Copy and Paste or Paste Special between Excel Workbooks wllee Excel Discussion (Misc queries) 5 April 29th 23 03:43 AM
'paste special', 'paste link' formatting transfer jrebello Excel Discussion (Misc queries) 2 July 25th 07 08:46 AM
In Excel: add a Paste-Special Option to paste IN REVERSE ORDER. stan-the-man Excel Worksheet Functions 7 June 14th 06 08:10 PM
Paste Special Function Juanda Calhoun Excel Discussion (Misc queries) 1 April 18th 06 02:06 PM
How does the PASTE.SPECIAL function work? Curt Excel Discussion (Misc queries) 6 July 28th 05 07:58 PM


All times are GMT +1. The time now is 03:56 PM.

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

About Us

"It's about Microsoft Excel"