View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
BoRed79 BoRed79 is offline
external usenet poster
 
Posts: 30
Default Pasting into an active cell

I have some VBA code (see below) where I am copying a fixed selection from
one workbook (which the user has selected), into the next empty row in a
different workbook (where the macro is located).


Sheets("National").Select
Range("A6:X21").Select
Selection.Copy

Windows("Diagnostics 2010-2011.xls").Activate
Sheets("C-National").Select
Selection.paste

However, I get a run time error (438) on the paste command when I try to run
it.

Any suggestions, as I am new to VBA