macro button

  • Thread starter Thread starter Tim
  • Start date Start date
T

Tim

Hello All,

I was just showing someone how to record a macro and
experienced a strange problem. We
recorded "paste_special_values" using a shortcut key and
a macro button. The macro runs fine if you use the
shortcut key or the macro button, but when i try to run
the macro using the "Run" button a get an
error "PasteSpecial method of Range class failed".

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

Any ideas?
 
When you run the macro using run, it clears the clipboard, so there is
nothing in the clipboard to paste.
 
Is there a reason for this? I can work around it without
a problem.....just curious.

Thanks
 

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

Back
Top