Results 1 to 4 of 4

Moving data to a closed workbook

Threaded View

  1. #1
    Registered User
    Join Date
    01-03-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    48

    Moving data to a closed workbook

    I have tried to move data from my active WB to a closed one with the following
     Sub bouncey()
    
    Cells.Select
        Selection.Copy
        Windows("Book1").Activate
        ActiveSheet.Paste
        Application.CutCopyMode = False
        ActiveWorkbook.SaveAs Filename:= _
            "C:\Documents and Settings\chris\My Documents\Book1.xlsx", FileFormat:= _
            xlOpenXMLWorkbook, CreateBackup:=False
        ActiveWindow.Close
    
    End Sub
    but it returns an error on "Windows("Book1").Activate"

    All help appreciated
    Last edited by bouncey; 02-07-2010 at 08:29 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1