Results 1 to 3 of 3

Error Message 'Subscript Out of Range'

Threaded View

  1. #1
    Registered User
    Join Date
    06-19-2009
    Location
    U.S.
    MS-Off Ver
    Excel 2003
    Posts
    18

    Error Message 'Subscript Out of Range'

    Hi all -

    See if you can see what is wrong with this code - I have no idea. All the spreadsheet names are correct and I have used this syntax before, I don't know what I am doing wrong. The macro has a problem with the 3rd line (
    Sheets("Data").Range("a3").Activate
    ), here is the code:

    Sub Hiwhatsup()
    Workbooks.Open Filename:="S:\PROJECTS\Traffic\Revisions\Test Spreadsheet #3.xls"
    Sheets("Data").Range("a3").Activate
    Range("a3").Activate
    Range("a3:o5000").Select
    Selection.Copy
    Windows("Test Spreadsheet #4.xls").Activate
    Range("a5").Activate
    Selection.Paste
    Application.CutCopyMode = False
    End Sub
    Thanks for your help.
    Last edited by sbnjac80; 08-24-2009 at 01:44 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