+ Reply to Thread
Results 1 to 2 of 2

Excel 2010 VBA - SaveCopyAs error 9 Subscript out of Range

  1. #1
    Registered User
    Join Date
    08-17-2012
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2012
    Posts
    5

    Excel 2010 VBA - SaveCopyAs error 9 Subscript out of Range

    Hello all,

    I am trying to copy an open workbook used by someone else. The SaveCopyAS is suppose to do this per Excel, but I am getting error 9, Subscript out of Range. Here is my very simple script

    Sub Create_Read_Only_Copy_Of_Workbook()

    Workbooks("Internal Master Schedule FY14.xlsx").SaveCopyAs "Internal Master Schedule FY14 - Read Only.xlsx"

    End Sub

    I have tried it with full paths and without as you see above, both give error 9

    Anyone seen this or can see what I am doing or not doing?

    Thanks

    Richard

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Excel 2010 VBA - SaveCopyAs error 9 Subscript out of Range

    The workbook must be open in that instance of Excel, and the name must be exactly correct, other than case.
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Subscript Out Of Range Error on Improting Excel Worksheet to Access
    By Aceso in forum Access Tables & Databases
    Replies: 2
    Last Post: 01-31-2013, 10:08 PM
  2. run-time error '9' subscript out of range 2007 excel
    By rulo777 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2012, 10:10 AM
  3. Defining Array - Runtime error 9, Subscript out of range error
    By MaartenW in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2012, 07:32 AM
  4. excel 2007: run-time error '9': subscript out of range
    By VBQuery in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2010, 03:54 AM
  5. Getting Excel Runtime Error 9: Subscript out of range
    By Ph8te in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-14-2006, 01:12 AM

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