View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Jimbob Jimbob is offline
external usenet poster
 
Posts: 48
Default Copy sheet to next un-named Workbook

Hi knowledgeable people
I have recorded some code to copy a worksheet from the current workbook
(which also contains the code) to the previously open workbook. From my
recording, I get this code:
Sheets("Record Check").Copy Befo=Workbooks("Template2009.xls").Sheets(20)
My problem is that the name of the destination workbook is variable and I
use ActiveWindow.ActivateNext to step between them. So I need to use code
which doesnt refer to the specific filename.

Please help