PasteSpecial between workbooks

  • Thread starter Thread starter Shahin Musayev
  • Start date Start date
S

Shahin Musayev

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.PasteSpecial
Paste:=xlPasteValues

' Third
Application.ActiveSheet.PasteSpecial "Text"

but result is the same. Any help is appreciated.

Thanx,
Shahin
 
I already posted my code (see three variants in my previous post). It
is located in my personal workbook.
 

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

Back
Top