Paste Special Macro

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

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
 
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
 
Myrna,

Why not just?

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

Bernie
 
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.
 

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

Similar Threads


Back
Top