View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Cantru Cantru is offline
external usenet poster
 
Posts: 5
Default Range PasteSpecial error

Thanks JB. The .Value option will not work for me in this case. But it opens
my mind for other possibilites. Thanks again.

"JBeaucaire" wrote:

Beacause you can't pass parameters to an inline destination. In a separate
line you can construct a full paste command with parameters, just like you've
discovered.

You could invert the logic and use the .Value option to strip the formula:

Range("DefYear").Value = Range("B8").Value

Does that work for you?

--
"Actually, I *am* a rocket scientist." -- JB
(www.MadRocketScientist.com)

Your feedback is appreciated, click YES if this post helped you.


"Cantru" wrote:

Why does the following line doesn't work but, when you split it does?

Range("B8").Copy Range("DefYear").PasteSpecial (xlPasteValues)

Range("B8").Copy
Range("DefYear").PasteSpecial (xlPasteValues)

Whre DefYear is the name of a cell.

Thanks