Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default PasteSpecial between workbooks

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:

' 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
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default PasteSpecial between workbooks

I already posted my code (see three variants in my previous post). It
is located in my personal workbook.
Reply
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 and cut Ron[_23_] Excel Programming 4 April 26th 04 02:14 AM
pastespecial Claude Excel Programming 2 February 24th 04 01:21 PM


All times are GMT +1. The time now is 07:58 AM.

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

About Us

"It's about Microsoft Excel"