+ Reply to Thread
Results 1 to 3 of 3

Subscript out of range?

  1. #1
    Registered User
    Join Date
    11-14-2006
    Posts
    25

    Subscript out of range?

    What's wrong with his code? I cant seem to make it work right between 2 workbooks. I tried the code within the same workbook and it works fine.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Which line does the error occur on? I presme Columnletter is a Function.

    You could try changing

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    11-14-2006
    Posts
    25
    Hi Roy,

    Columnletter is a function i've used over and over again in my code so i'm confident that's not where the error is.

    I looked at my code again this morning only to find the error staring me right in the nose.... the line:

    ChartBook.Worksheets("Sheet1").Range(recordcolumn & recordrow).Value = SPRBook.Worksheets("SPRs").Range("a" & searchrow).Value

    I looked in the chartbook and couldn't find sheet1... i had renamed it "Missing data" on friday. Wow, I feel stupid.

    Thanks anyways,
    Kareem

+ 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