Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Paste Special Macro

Hi,

I was hoping that someone could tell me how to create a
macro that I can link to a customized button on my
toolbar that simply does a "edit" "paste
special" "values". I have to use this function quite a
bit throughout my day and just wanted a shortcut. Thanks
for your help.

Aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Paste Special Macro

Aaron,

Excel has a button that does this, but it isn't shown by default. Right
click on a commandbar, choose customize, then choose the "Commands" tab,
"Edit" category, and then drag the "Paste Values" button from the commands
window to the commandbar where you want it to appear. I have mine to the
right of the regualr paste.

HTH,
Bernie
MS Excel MVP

"Aaron" wrote in message
...
Hi,

I was hoping that someone could tell me how to create a
macro that I can link to a customized button on my
toolbar that simply does a "edit" "paste
special" "values". I have to use this function quite a
bit throughout my day and just wanted a shortcut. Thanks
for your help.

Aaron



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default Paste Special Macro

I use the following macro, and I've attached a shortcut key to it,
CTRL+SHIFT+V. It requires only that you select the cells to be converted (must
be a single-area selection); it does *both* the copying and the pasting.

Sub ConvertToValues()
With Application
.ScreenUpdating = False
.DisplayAlerts = False
End With
With Selection
.Copy
.PasteSpecial Paste:=xlValues
End With
With Application
.CutCopyMode = False
.DisplayAlerts = True
End With
End Sub 'ConvertToValues


On Wed, 11 Aug 2004 08:32:13 -0700, "Aaron"
wrote:

Hi,

I was hoping that someone could tell me how to create a
macro that I can link to a customized button on my
toolbar that simply does a "edit" "paste
special" "values". I have to use this function quite a
bit throughout my day and just wanted a shortcut. Thanks
for your help.

Aaron


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Paste Special Macro

Myrna,

Why not just?

Sub ConvertToValues()
Selection.Value = Selection.Value
End Sub

Bernie

"Myrna Larson" wrote in message
...
I use the following macro, and I've attached a shortcut key to it,
CTRL+SHIFT+V. It requires only that you select the cells to be converted

(must
be a single-area selection); it does *both* the copying and the pasting.

Sub ConvertToValues()
With Application
.ScreenUpdating = False
.DisplayAlerts = False
End With
With Selection
.Copy
.PasteSpecial Paste:=xlValues
End With
With Application
.CutCopyMode = False
.DisplayAlerts = True
End With
End Sub 'ConvertToValues


On Wed, 11 Aug 2004 08:32:13 -0700, "Aaron"
wrote:

Hi,

I was hoping that someone could tell me how to create a
macro that I can link to a customized button on my
toolbar that simply does a "edit" "paste
special" "values". I have to use this function quite a
bit throughout my day and just wanted a shortcut. Thanks
for your help.

Aaron




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Paste Special Macro

If I put '000001 in a cell (so it's text), then use .value = .value, it's
converted to real numbers.

If I have a value in a cell that uses character by character formatting, then I
lose that.

But I don't see a difference if you know your data.


Bernie Deitrick wrote:

Myrna,

Why not just?

Sub ConvertToValues()
Selection.Value = Selection.Value
End Sub

Bernie

"Myrna Larson" wrote in message
...
I use the following macro, and I've attached a shortcut key to it,
CTRL+SHIFT+V. It requires only that you select the cells to be converted

(must
be a single-area selection); it does *both* the copying and the pasting.

Sub ConvertToValues()
With Application
.ScreenUpdating = False
.DisplayAlerts = False
End With
With Selection
.Copy
.PasteSpecial Paste:=xlValues
End With
With Application
.CutCopyMode = False
.DisplayAlerts = True
End With
End Sub 'ConvertToValues


On Wed, 11 Aug 2004 08:32:13 -0700, "Aaron"
wrote:

Hi,

I was hoping that someone could tell me how to create a
macro that I can link to a customized button on my
toolbar that simply does a "edit" "paste
special" "values". I have to use this function quite a
bit throughout my day and just wanted a shortcut. Thanks
for your help.

Aaron



--

Dave Peterson

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
PASTE SPECIAL w/ Macro Jase Excel Discussion (Misc queries) 7 February 26th 08 06:06 PM
Paste Special in a macro CMAC Excel Worksheet Functions 2 December 6th 04 10:19 PM
Dynamic Copy/Paste Special Formulas/Paste Special Values Sharon Perez Excel Programming 3 August 7th 04 09:49 PM
Macro/Paste Special steve Excel Programming 0 August 14th 03 11:47 PM
Macro to Paste Special MrAlMackay Excel Programming 0 July 17th 03 04:27 PM


All times are GMT +1. The time now is 12:18 AM.

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"