+ Reply to Thread
Results 1 to 3 of 3

problem copying sheets in excel 2007

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    problem copying sheets in excel 2007

    I am running a macro in excel 2007 and I am getting this error see attached image. the code is below but when I run it in office 2003 it works fine. Anybody has an idea on how to fix this problem?

    
    Sub DSOnAir()
    Dim i, x, j As Long
    Application.Workbooks("Search_xls.xlsx").Activate
    ActiveWorkbook.Worksheets("Search_xls").Activate
    Worksheets("search_xls").Copy After:=Application.Workbooks("DesignSites.xls").Worksheets("DesignSites")
    Sheets(Array("DesignSites", "search_xls")).Select
    End Sub

    Thanks

  2. #2
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    sorry forget to upload the files.

  3. #3
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    Here are the files.
    Attached Files Attached Files

+ Reply to Thread

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