Macro for Pate Special Formula - Time Error 1004

U

Unai

Hi all, I would be delighted if anyone can help me with a macro to be able to
copy psate special formulas. I have tried to create the macro but I get the
error "run time error 1004", the code I have used on the macro is:
"
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End Sub"
I have built this macro by first copying a cell with a formula, then I
started recording the macro following the steps: selecting a range of cells,
then paste steacial, then paste special, then formulas. Finally I stop
recording. What am I doing wrong guys?.
Thanks a lot for your help.
 
W

Wolfgang Kais

Hello "Unai".

Unai said:
Hi all, I would be delighted if anyone can help me with a macro to be
able to copy psate special formulas. I have tried to create the macro
but I get the error "run time error 1004", the code I have used on the
macro is:
Selection.PasteSpecial Paste:=xlPasteFormulas, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
End Sub
I have built this macro by first copying a cell with a formula, then
I started recording the macro following the steps: selecting a range
of cells, then paste steacial, then paste special, then formulas.
Finally I stop recording. What am I doing wrong guys?.
Thanks a lot for your help.

That is an excel question but here is a newsgroup for microsoft access.
When opening the Tools, Macros... window, the "copy state" gets lost.
Define a shortcut or a new menu item that runs your macro.
 
U

Unai

Thanks for that Wolfgang and your are right I posted this in the access
group.regards.Unai
 

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

Top