Range("A4").Select
Selection.Copy
Range("C8").Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=
_
False, Transpose:=False
Application.CutCopyMode = False
"Simon Freedman" <simon.f...@energis.com> wrote in message
news:1e73c01c2978b$7dc2c540$8af82ecf@TK2MSFTNGXA03...
> I am trying to write a macro to Paste Special, Value in
> Excel.
>
> The macro I have written (called 'valuev in the attached
> file) uses the following:
>
> Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
> SkipBlanks:= _ False, Transpose:=False
>
> but I am unable to paste special, values - can anyone help?
>
> many thanks
>
When I Ctrl + C, then run my original macro, it comes up with an 1004
internal error message
any ideas?
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Well, it works fine for me - I tried running the macro with a hot key, and
also from within the VBA editor (having copied something to the paste
buffer). So I tried 'tools>macro>macros>run' and got the 1004 error. I
think it is because the range you are pasting to (the currently selected
cell) is somehow 'lost' by going through the menu structure.
HTH Martin
thanks for your help
Alhtough I can instruct them to copy, I tried to use the
code mentioned to paste values but it never works! (And it
is definately copied first).
The only way to do this, is when the values are copied
from an excel sheet.
Is this an issue or am I doing something wrong?
Regards.
Tommy Long
Business Services Team
Barclays House, Dorset
>.
>
--
TTFN
JMMach