LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default PasteSpecial fails

Hi everyone!

I'm trying to write a macro to paste values. It works fine when I
copy
and paste within one workbook, but it pasts formula when I try to
paste values copied from workbook A (=BalancePL!D32) to workbook B
(='[A]BalancePL'!D32). I must admit that it does it only in case one
cell is copied, when I copy more than one cell everything works
fine...

I tried lots of variants (see examples of code below):

' First
Application.Selection.PasteSpecial Paste:=xlPasteValues

' Second
Application.ActiveWindow.RangeSelection.PasteSpeci al
Paste:=xlPasteValues

' Third
Application.ActiveSheet.PasteSpecial "Text"

but result is the same. Any help is appreciated.


Thanx,
Shahin
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why need to use Selection.PasteSpecial vs myRange.PasteSpecial [email protected] Excel Programming 4 June 25th 07 05:34 PM
PasteSpecial gj[_2_] Excel Programming 3 August 1st 06 08:57 PM
PasteSpecial Kevin Excel Programming 3 October 7th 04 01:07 PM
pastespecial Jeff Excel Programming 4 September 28th 04 10:30 PM
vba pastespecial joao Excel Programming 2 November 14th 03 03:31 PM


All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"