Results 1 to 7 of 7

excel 2007: run-time error '9': subscript out of range

Threaded View

  1. #1
    Registered User
    Join Date
    08-08-2010
    Location
    Brisbane
    MS-Off Ver
    Excel 2007
    Posts
    3

    excel 2007: run-time error '9': subscript out of range

    Hi, am having issues importing worksheets from another workbook. Can anyone help, please?


    Sub Golf()
    '
    ' Golf Macro
    '
    ' Keyboard Shortcut: Ctrl+Shift+O
    '
        ChDir "W:\Schedules"
        Workbooks.Open Filename:= _
            "W:\Schedules\Order Hole-in-One.xltx", _
            UpdateLinks:=0, Editable:=True
        Sheets(Array("PlacementConfirmation", "Invoice", "Certificate", "WitnessChecklist" _
            , "ClaimForm", "Affidavit", "Terms", "BrokerList")).Select
        Sheets("PlacementConfirmation").Activate
        Sheets(Array("PlacementConfirmation", "Invoice", "Certificate", "WitnessChecklist" _
            , "ClaimForm", "Affidavit", "Terms", "BrokerList")).Copy Before:=Workbooks( _
            "Schedule Hole-in-One.xltm").Sheets(2)
        Windows("Order Hole-in-One.xltx").Activate
        ActiveWindow.Close
    End Sub
    Last edited by teylyn; 08-09-2010 at 02:20 AM. Reason: changed quote to code tags

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